[Zope] REQUEST is too crowded

Itamar Shtull-Trauring itamars@ibm.net
Tue, 02 Nov 1999 21:20:01 +0200


Kevin Dangoor wrote:

> > <dtml-in "_.getitem(zcatalog, 1)">
> > <dtml-call "REQUEST.set('newurl', '/' + getpath(data_record_id_))">
> > </dtml-in>
> 
> How about:
> 
> <dtml-in "_[zcatalog]({'title' : 'foo', 'metatype' : 'Folder'})">

Doesn't seem to work, I get:
	Error Type: AttributeError
	Error Value: no __call__ method defined

File /itamar/Zope-2.0.1-linux2-x86/lib/python/DocumentTemplate/DT_In.py,
line 633, in renderwob
    (Object: _[zcatalog]({key_attribute : uid}))
  File /itamar/Zope-2.0.1-linux2-x86/lib/python/DocumentTemplate/DT_Util.py,
line 321, in eval
    (Object: _[zcatalog]({key_attribute : uid}))
  File <string>, line 0, in ?
AttributeError: (see above)