Hi Chris, When I use this statement I get the following error. Error Type: AttributeError Error Value: set Traceback (innermost last): Module ZPublisher.Publish, line 98, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 39, in call_object Module OFS.DTMLMethod, line 126, in __call__ Module DocumentTemplate.DT_String, line 474, in __call__ Module DocumentTemplate.DT_Let, line 76, in render Module DocumentTemplate.DT_With, line 76, in render Module DocumentTemplate.DT_In, line 604, in renderwb Module DocumentTemplate.DT_Util, line 201, in eval - __traceback_info__: REQUEST Module <string>, line 2, in f AttributeError: set Greetings,Michael----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Michael Bleijerveld" <michael@bleijerveld.nl> Cc: <zope@zope.org> Sent: Saturday, August 02, 2003 4:26 PM Subject: Re: [Zope] request.set sequence value
Michael Bleijerveld wrote:
Hello Chris,
Here are the statements which generates an error.
<dtml-if next-sequence> <dtml-call "REQUEST.set('query_start',<dtml-var next-sequence-start-number>)">
Okay, you can't do this!
you want:
<dtml-call "REQUEST.set('query_start',_.getitem('next-sequence-start-number'))">
FWIW, you should be doing this in ZPT by now to avoid this kind of suffering...
Chris
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )