[Zope] _.getitem() was:Getting an object from it's id

Chris Withers chrisw@nipltd.com
Tue, 23 Jan 2001 14:20:43 +0000


Tim Cook wrote:
> 
> I use getitem() quite alot and never set the flag (therefore it's
> false). It works and does what I want, but the ZQR entry doesn't
> seem to support that and I have seen it given as an example with
> the flag set true with what appears to me to be the same results.

...it can quite often be, but try this:

if mymethod is a DTML method:

_.getitem('mymethod') will return a DTML Method object.

_.getitem('mymethod',1) will return a lump of text.


HTH,

Chris