[Zope] request.set sequence value

Jaroslav Lukesh lsh@wo.cz
Mon Aug 4 08:17:22 EDT 2003


> Odes=EDlatel: Michael Bleijerveld <michael@bleijerveld.nl>
> When I use this statement I get the following error.
>=20
> Error Type: AttributeError
> Error Value: set
> Greetings,Michael----- Original Message -----=20
> From: "Chris Withers" <chrisw@nipltd.com>
> > > 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'))">
> >

Hi, try that:

<dtml-call "REQUEST.set('query_start',_['next-sequence-start-number'])">

Regards, JL.




More information about the Zope mailing list