[Zope] absolute_url vs. REQUEST/URL0

Paul Winkler pw_lists at slinkp.com
Wed Feb 25 17:21:35 EST 2004


On Wed, Feb 25, 2004 at 10:06:14PM +0100, Dieter Maurer wrote:
> Jason C. Leach wrote at 2004-2-24 09:23 -0800:
> >So what's the difference between absolute_url and URL0? Where should each
> >be used?
> 
> "absolute_url" gives you the shorted path to the object,

... taking into  account  virtual hosting, that is.

The shortest path internally to Zope (i.e. useable for
restrictedTraverse) may be found by calling getPhysicalPath.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's FISHSTICK DR WANG!
(random hero from isometric.spaceninja.com)



More information about the Zope mailing list