[Zope] Q: Traversal by URL: 2.0 different from 1.10.3? (was: Z-1.10.3, method invocation by URL...) invocation by URL...)

Thomas Riedl tom.riedl@linux-ag.de
Mon, 13 Sep 1999 14:16:29 +0200


Hi Zopesters!

First of all the question:

Is the behaviour mentioned below an intended one, i.e.:
Can't 1.20.3 _really_ fulfill those wishes of mine?

LOTIA

tom.

==============================================================
Trying to answer my own question of last friday, I tried this:

I created a method ' framify', which serves as
a 'layout template' method.

I call up my doCONTENTuments (e.g., pure content)
like this:
	http://somehost:someport/Zope/some/area/doc0001/framify


o With ZServer/2.0.0b5, this works OK, they are nicely 'rendered'
  by 'framify'.

o With ZAP/1.10.3, I get a traceback like this:
	[Traceback]
	Bobo has encountered a problem publishing your object.

	Cannot locate object at:
http://www.linux-ag.de:8080/Zope/tomtest/mytest/framify 

	Traceback (innermost last):
	  File
/mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py,
line 877, in 
		publish_module
	  File
/mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py,
line 420, in
		 publish
	    (Info: /tomtest/mytest/framify)
	  File
/mnt/universe/home/zope/Zope-1.10.3-src/lib/python/ZPublisher/Publish.py,
line 270, in
	 debugError
	NotFound: (see above)
	[Traceback]



Framify:
==================================================
<!--#unless no_not_again-->
<html>
<!-- some header stuff-->
<!--#call "REQUEST.set('no_not_again', 1)"-->
<!--#var "_.getitem(_['id'], 1)"-->
<!-- some footer stuff-->
</html>
<!--#/unless-->
==================================================

FYI: I don't want to clutter my doCONTENTuments
with things like '<!--#var some_header--> ....'
stuff.

I also don't want to make 'framify' a parent's folder's
method named 'index_html' including 'content_html'
and create lots of subfolders with a single 'dontent_html'
doc in them.

-- 
MfG: Thomas Riedl     |  Linux Information Systems AG  |
http://www.linux-ag.de
Tom.Riedl@Linux-AG.de |    "Linux is our business"     | Tel: 089/99 34
12-0
Tel.: 089/99 34 12-11 |	 			       | Fax: 089/99 34 12-99