[Zope] last Q : root path

Paul Winkler pw_lists at slinkp.com
Thu Dec 11 12:49:39 EST 2003


On Thu, Dec 11, 2003 at 06:06:53PM +0100, fowlertrainer at anonym.hu wrote:
> Hello !
> 
> How can I get the root path of my site in python script ?

here's one way...

zope_root = container.restrictedTraverse('/')

-- 

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



More information about the Zope mailing list