[Zope-dev] Re: Weird acquisition behavior of Page Templates

Maik Jablonski maik.jablonski@uni-bielefeld.de
Mon, 05 May 2003 08:20:54 +0200


Paul Winkler wrote:
> As far as i can tell, if you put a page template anywhere in the URL,
> it gets rendered no matter what else comes after it in the URL.
> /my_folder/my_template/foo/bar/baz...  no matter what, you get
> my_template rendered.

I can reproduce it with PageTemplates. It's the same behavior with 
PythonScripts anywhere in the URL. They are "catch-alls" and deliver the 
rest of the URL in the "traverse_subpath" of the REQUEST. This can be 
useful if you want to build "virtual urls". For PythonScripts this 
behavior is very, very, very useful, but I don't know if this is true 
for PageTemplates as well.

Cheers, Maik