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
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 )
hi, you can't nest <dtml>-tags. try this instead: <dtml-call "RESPONSE.redirect('toon2?datum=%s&teller=%s' % (ddatum,teller))"> greetings, maik. -- maik jablonski visit www.zope.org, universitaet bielefeld LET'S GET ZOPED!!!! zentrum fuer lehrerbildung didaktik des sachunterrichts postfach 10 01 31 33501 bielefeld germany tel: + 49 (0) 521 106 4234 http://www.zfl.uni-bielefeld.de/ http://www.sachunterricht-online.de/
participants (3)
-
Dirk Van.Laanen -
Maik Jablonski -
Phil Harris