request.set sequence value
Hi, When using <dtml-call "REQUEST.set('prev_batch',<dtml-var next-sequence-start-number>)"> I receive the following error. , for tag <dtml-call "REQUEST.set('prev_batch',<dtml-var next-sequence-start-number>)"> What is the problem ? Harry
Michael wrote:
Hi,
When using <dtml-call "REQUEST.set('prev_batch',<dtml-var next-sequence-start-number>)"> I receive the following error.
, for tag <dtml-call "REQUEST.set('prev_batch',<dtml-var next-sequence-start-number>)">
Might help if you actually included the error... ...and stopped posting in HTML ;-) Chris
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>)"> <form action="." method="post"> <input type="submit" name="showFiles:method" value="Volgende pagina" style="font-family:Arial; color:white; background-color:rgb(0,153,255);"> </form </dtml-if next-sequence> This is the errorlog. Traceback (innermost last): a.. Module ZPublisher.Publish, line 98, in publish b.. Module ZPublisher.mapply, line 88, in mapply c.. Module ZPublisher.Publish, line 39, in call_object d.. Module OFS.DTMLMethod, line 258, in manage_edit e.. Module DocumentTemplate.DT_String, line 320, in munge f.. Module DocumentTemplate.DT_String, line 340, in cook g.. Module DocumentTemplate.DT_String, line 170, in parse h.. Module DocumentTemplate.DT_String, line 223, in parse_block i.. Module DocumentTemplate.DT_String, line 170, in parse j.. Module DocumentTemplate.DT_String, line 223, in parse_block k.. Module DocumentTemplate.DT_String, line 170, in parse l.. Module DocumentTemplate.DT_String, line 223, in parse_block m.. Module DocumentTemplate.DT_String, line 170, in parse n.. Module DocumentTemplate.DT_String, line 223, in parse_block o.. Module DocumentTemplate.DT_String, line 174, in parse p.. Module DocumentTemplate.DT_Var, line 331, in __init__ q.. Module DocumentTemplate.DT_Util, line 278, in name_param __traceback_info__: ({'expr': "REQUEST.set('query_start',<dtml-var next-sequence-start-number>)"}, 'call', 1, 'name') r.. Module RestrictedPython.Eval, line 51, in __init__ s.. Module RestrictedPython.Eval, line 78, in prepUnrestrictedCode File "<string>", line 1 <br /> REQUEST.set('query_start',<dtml-var next-sequence-start-number>) <br /> ^ <br /> SyntaxError: invalid syntax Regards, Michael ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Michael" <qwerty@tiscalimail.nl> Cc: <zope@zope.org> Sent: Thursday, July 31, 2003 5:45 PM Subject: Re: [Zope] request.set sequence value
Michael wrote:
Hi,
When using <dtml-call "REQUEST.set('prev_batch',<dtml-var next-sequence-start-number>)"> I receive the following error.
, for tag <dtml-call "REQUEST.set('prev_batch',<dtml-var next-sequence-start-number>)">
Might help if you actually included the error...
...and stopped posting in HTML ;-)
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 )
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
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 )
Michael Bleijerveld wrote:
When I use this statement I get the following error.
Error Type: AttributeError Error Value: set
Your REQUEST object has no set method? That's pretty baffling... Try doing <dtml-var REQUEST html_quote> instead of your code below (ie: in the situation which is causing the 'set' error and see what you get... cheers, Chris
Hi Chris, The following message is displayed <Special Object Used to Force Acquisition>. Has this something to do with permissions ? Regards, Michael ----- Original Message ----- From: "Chris Withers" <chrisw@nipltd.com> To: "Michael Bleijerveld" <michael@bleijerveld.nl> Cc: <zope@zope.org> Sent: Monday, August 04, 2003 12:50 PM Subject: Re: [Zope] request.set sequence value
Michael Bleijerveld wrote:
When I use this statement I get the following error.
Error Type: AttributeError Error Value: set
Your REQUEST object has no set method? That's pretty baffling...
Try doing <dtml-var REQUEST html_quote> instead of your code below (ie: in the situation which is causing the 'set' error and see what you get...
cheers,
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 )
Michael Bleijerveld wrote:
Hi Chris,
The following message is displayed <Special Object Used to Force Acquisition>.
This means the object you're getting the REQUEST from is not acquisition wrapped. Have you been fiddling with Products or External Methods? ;-) cheers, Chris
participants (3)
-
Chris Withers -
Michael -
Michael Bleijerveld