[Zope] Hello,

Phil Harris phil@harris-family.info
Wed, 20 Mar 2002 11:07:22 -0000


I rather doubt whether any of those would work, but this will:


<dtml-call "REQUEST.set('datum','1796/03/22')">
<dtml-call "REQUEST.set('teller', 7)">
<dtml-call "RESPONSE.redirect('toon2?datum=%sdatum>&teller=%s' %
(datum,teller))">

hth

Phil


----- Original Message -----
From: "Dirk Van.Laanen" <Dirk.Van.Laanen@niwi.knaw.nl>
To: <zope@zope.org>
Sent: Wednesday, March 20, 2002 10:59 AM
Subject: [Zope] Hello,


> Hello,
>
> I want to redirect to another document with certain parameters.
>
> the following works:
> <dtml-call "REQUEST.set('teller', 7)">
> <dtml-call "RESPONSE.redirect('toon2?datum=1796/03/22&teller=<dtml-var
> teller>')">
> so the <dtml-var teller> is read.
>
> but when I try:
> <dtml-call "REQUEST.set('datum','1796/03/22')">
> <dtml-call "REQUEST.set('teller', 7)">
> <dtml-call "RESPONSE.redirect('toon2?datum=<dtml-var
datum>&teller=<dtml-var
> teller>')">
>
> I get NameErrors or Invalid Date-Time String warnings. Things like
> "_.DateTime(datum)" or (_.str(datum)) don't work either.
>
> Anybody any suggestions?
>
> Cheers, Dirk
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )