[Zope] redirect page with variables

Dieter Maurer dieter@handshake.de
Thu, 11 Apr 2002 21:53:46 +0200


Horvath Adam writes:
 > >From a form I have a lot of form variabes in the REQUEST 
 > object. The form processing method modify this form
 > variables and set some new one in the REQUEST object.
 > After it I'd like to redirect page with this modified 
 > variables. 
 > Can I append REQUEST variables to this command?
 > <dtml-call "REQUEST.RESPONSE.redirect(pagename)">
 > Or I have to append to pagename the name and
 > value of the variables one after the other?
The latter.

But maybe, my "emulateRedirect" external method can help you.
See

  <http://www.dieter.handshake.de/pyprojects/zope>

"urllib.urlencode" can also make it easier. You need to add
a security declaration (see "README" in "PythonsScripts"!),
before you can use it in Python scripts...


Dieter