[Zope] getitem in pythonscript

Chris Muldrow muldrow@mac.com
Wed, 02 May 2001 10:24:17 +0000


I'm using __getitem__ inside a script like so:
objectRendered = workDir.__getitem__(docs)
where workDir is a container and docs is a string
Does that do what you're looking for?

> From: bak (kedai) <kedai@kedai.com.my>
> Date: Tue, 1 May 2001 15:23:31 +0800
> To: zope@zope.org
> Subject: [Zope] getitem in pythonscript
> 
> hi
> what's the equivalent of _.getitem(stuff) in python script?
> the only way i know of is by binding _, and refer to it as
> ob=_.getitem(stuff)
> 
> is this the *only* way?
> 
> thanks
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )