I just recognized (and was astonished) that "absolute_url" strips any context from the URL.
Thus, e.g., if you have the following structure: / F/ D -> absolute_url en/ de/ fr/
then "GET('/en/F/D')" will return "/F/D". This is because, "absolute_url" is based on "getPhysicalPath".
Probably it is this behaviour that should be indicated by the "absolute" in "absolute_url" (I never understood it so far). Nevertheless, I suggest to make this behaviour more explicit in the documentation.
Dieter
Its always done that, and its always made sense to me. It is the url to the object, the context is available in many other ways even before getPhysicalPath was around...
-- Andy McKay
----- Original Message ----- From: "Dieter Maurer" dieter@handshake.de To: zope@zope.org Sent: Sunday, June 24, 2001 2:04 AM Subject: [Zope] [Note] "absolute_url" strips any context
I just recognized (and was astonished) that "absolute_url" strips any context from the URL.
Thus, e.g., if you have the following structure: / F/ D -> absolute_url en/ de/ fr/
then "GET('/en/F/D')" will return "/F/D". This is because, "absolute_url" is based on "getPhysicalPath".
Probably it is this behaviour that should be indicated by the "absolute" in "absolute_url" (I never understood it so far). Nevertheless, I suggest to make this behaviour more explicit in the documentation.
Dieter
Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )