--On 7. September 2006 17:33:45 +0800 "Sinang, Danny" <[EMAIL PROTECTED]> wrote:

Hello,

I want to reference an object named "Es" found in the directory
/apps/wms .

I'd normally create a script in /apps/wms and issue the command obj =
getattr(context,"Es") .

Here you're using acquisition.

But how do I do so from a script located elsewhere ?


E.g. through traversal: context.restrictedTraverse('/path/to/object').

-aj


--
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting

Attachment: pgpiaflM8nHFW.pgp
Description: PGP signature

_______________________________________________
Zope maillist  -  Zope@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 )

Reply via email to