[Zope] Hello,

Dirk Van.Laanen Dirk.Van.Laanen@niwi.knaw.nl
Wed, 20 Mar 2002 12:22:26 +0100


Hello Phil,=20

thanks for the quick answer.=20

>>> "Phil Harris" <phil@harris-family.info> 03/20/02 12:07pm >>>
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=3D%sdatum>&teller=3D%s' %
(datum,teller))">


the problem is 'datum' is now seen as the integer division 1796/03/22 =
which is 27.=20

The problem was=20
datum=3D%sdatum> i think, which should be datum=3D%.
<dtml-call "RESPONSE.redirect('toon2?datum=3D%s&teller=3D%s' %
(datum,teller))">
actually works

Thanks a lot, cheers, Dirk

----- 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=3D1796/03/22&teller=3D<dtml-va=
r
> 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=3D<dtml-var
datum>&teller=3D<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=20
> http://lists.zope.org/mailman/listinfo/zope=20
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce=20
>  http://lists.zope.org/mailman/listinfo/zope-dev )