REQUEST is too crowded
I'm refering to a ZCatalog using a variable zcatalog which contains the name of the Zcatalog: <dtml-in "_.getitem(zcatalog, 1)"> <dtml-call "REQUEST.set('newurl', '/' + getpath(data_record_id_))"> </dtml-in> So I need to pass the search parameters via REQUEST. Unfortanutely, REQUEST already has all kinds of variables set in it because this is a rather involved procedure, and these variables may affect the search results. I need to pass the search terms to the Zcatalog somehow, or make a empty REQUEST variable - any ideas how? I can only call the Zcatalog using _.geitem or the like. -- Itamar - itamars@ibm.net
----- Original Message ----- From: Itamar Shtull-Trauring <itamars@ibm.net> To: <zope@zope.org> Sent: Tuesday, November 02, 1999 12:20 PM Subject: [Zope] REQUEST is too crowded
I'm refering to a ZCatalog using a variable zcatalog which contains the name of the Zcatalog:
<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'})"> ... Kevin
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)
At 20:20 2-11-99 , Itamar Shtull-Trauring wrote:
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
Because that should read: <dtml-in "_.getitem(zcatalog, 0)({'title' : 'foo', 'metatype' : 'Folder'})"> -- Martijn Pieters, Web Developer | Antraciet http://www.antraciet.nl | T: +31 35 7502100 F: +31 35 7502111 | mj@antraciet.nl http://www.antraciet.nl/~mj | PGP: http://wwwkeys.nl.pgp.net:11371/pks/lookup?op=get&search=0xA8A32149 ---------------------------------------------
participants (3)
-
Itamar Shtull-Trauring -
Kevin Dangoor -
Martijn Pieters