[Zope] getitem in pythonscript

Bak @ kedai kedai@kedai.com.my
Wed, 2 May 2001 23:04:20 +0800


-----Original Message-----
From: Chris Muldrow <muldrow@mac.com>
To: bak (kedai) <kedai@kedai.com.my>; zope@zope.org <zope@zope.org>
Date: Wednesday, May 02, 2001 10:25 PM
Subject: Re: [Zope] getitem in pythonscript


>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?

i've tried this but got a name error, iirc.  i'll give it another shot at
work tomorrow

>
>> 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 )
>