[Zope-dev] absolute_url(1) doesn't start with a /

Michael R. Bernstein webmaven@lvcm.com
31 Jul 2001 12:12:37 -0700


On 31 Jul 2001 19:09:57 +0100, Steve Alexander wrote:
> absolute_url(1) is supposed to give you the "physical path relative to a 
> VirtualRoot".
> 
> However, the returned value doesn't start with a "/", so it is not 
> really a useful relative path.
> 
> Is this a bug, or was it designed that way?
> 
> (I suspect the answer might be "yes" and "yes" from my point of view :) )
> 
> Reference: /lib/python/OFS/Traversable.py

But that *is* a relative path. Paths beginning with a "/" are
"site-relative" paths.

Arguably, absolute_url should be returning the site-relative path,
though.

Michael Bernstein.