Hello ! How can I get the root path of my site in python script ? Thanx for any advance. KK -- Best regards, fowlertrainer mailto:fowlertrainer@anonym.hu
On Thu, Dec 11, 2003 at 06:06:53PM +0100, fowlertrainer@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)
fowlertrainer@anonym.hu wrote:
How can I get the root path of my site in python script ?
There's a very nice recipe for this over at zopelabs. "How to cleanly get root" or something like that. --jcc -- "Code generators follow the 80/20 rule. They solve most of the problems, but not all of the problems. There are always features and edge cases that will need hand-coding. Even if code generation could build 100 percent of the application, there will still be an endless supply of boring meetings about feature design." (http://www.devx.com/java/editorial/15511)
participants (3)
-
fowlertrainerļ¼ anonym.hu -
J Cameron Cooper -
Paul Winkler