[Zope] Returning a PageTemplate within a Disk-based Product always returns the aq_parent, not the ZPT itself

Dieter Maurer dieter at handshake.de
Sat Dec 13 14:29:56 EST 2003


nicogrubert at arcor.de wrote at 2003-12-12 18:33 +0100:
>by "show", I mean the URL in browser's address bar.
>When calling the method defined my product, I come from the URL:
>http://localhost:8080/MyProductInstance/authors/Add_Author.html
>
>So, if I stay in the same HTTP request, shoudn't it be http://localhost:8080/MyProductInstance/authors/Add_Author.html when calling the python 
>method to return the page template ?

It should indeed, unless the page contains a "base" tag (this
can change everything up to (and excluding)
the last path segment ("Add_Author.html" in your case)
or javascript (which could change everything).

-- 
Dieter



More information about the Zope mailing list