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

Declan Shanaghy declanshanaghy at yahoo.com
Thu Dec 4 14:32:14 EST 2003


As long as its within the context...
Because of acquisition you dont have to fully qualify your reference to
the script.

You can just write

result=context.script1(context, request)




--- 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 ?
> 
> like this:
> 
> result=./script1()
> 
> 
> Thanx.
> 
> -- 
> Best regards,
>  fowlertrainer                         
> mailto:fowlertrainer at anonym.hu
> 
> 
> _______________________________________________
> Zope maillist  -  Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )




More information about the Zope mailing list