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

Tim Cook twcook@iswt.com
Tue, 23 Jan 2001 08:32:16 -0600


Chris Withers wrote:
> 
> 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.
> 

It does, thanks.
See, simple answers for simple minds. <s>


-- Tim Cook, President --
Free Practice Management,Inc. | http://www.FreePM.com Office:
(901) 884-4126
"Liberty has never come from the government." - Woodrow Wilson