[Zope] [Note] "absolute_url" strips any context

Andy McKay andym@ActiveState.com
Fri, 24 Aug 2001 21:54:30 -0700


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 )
>