[Zope] Newbie - how to I access an object with rel path

Paul Winkler pw_lists at slinkp.com
Thu Dec 4 09:44:20 EST 2003


On Thu, Dec 04, 2003 at 02:04:59PM +0100, fowlertrainer at anonym.hu wrote:
> Hello,
> 
> My site is structured with folders.
> Some scripts are positioned in same directory.
> 
> example:
> 
> LoginScripts folder:
>  checkSession
>  checkUserName
>  ....
> 
> If I want to use script1 from script2, I write this:
> 
> result=context.LoginScripts.script1()
> 
> But is exists another way to I access it ?

result=container.script1()

-- 

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



More information about the Zope mailing list