Re: [Zope] Returning a PageTemplate within a Disk-based Product always returns the aq_parent, not the ZPT itself
I'm not sure what you mean by "show" -- where does Zope show you this URL? If you're talking about your browsers address bar, this will be the same as the original request to your product instance, since you are staying within the same HTTP request (when returning the page, instead of redirecting)
Hello Peter, 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 ? -nico
nicogrubert@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
participants (2)
-
Dieter Maurer -
nicogrubertīŧ arcor.de