[Zope] Hello,

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


My bad, it was a typo on my part ;)

----- Original Message -----
From: "Dirk Van.Laanen" <Dirk.Van.Laanen@niwi.knaw.nl>
To: <phil@harris-family.info>; "Dirk Van.Laanen" <DirkL@niwi.knaw.nl>;
<zope@zope.org>
Sent: Wednesday, March 20, 2002 11:22 AM
Subject: Re: [Zope] Hello,


> Hello Phil,
>
> thanks for the quick answer.
>
> >>> "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=%sdatum>&teller=%s' %
> (datum,teller))">
>
>
> the problem is 'datum' is now seen as the integer division 1796/03/22
which is 27.
>
> The problem was
> datum=%sdatum> i think, which should be datum=%.
> <dtml-call "RESPONSE.redirect('toon2?datum=%s&teller=%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=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 )
>