[Zope] redirect

Christian Scholz cs@comlounge.net
Tue, 24 Oct 2000 17:02:27 +0200


Hi!

> how to for that function REDIRECT understand a variable.
> 
> ex.
> 
> <dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod=<dtml-var
> test>')">

use

<dtml-call "RESPONSE.redirect('http://zope.org/index.htm?cod='+test)">

with "" you will enter the python scope and thus no dtml syntax is allowed
anymore. Instead you have to use python syntax (test should be a string
btw, otherwise use _.str(test) to make it one).

cheers,
  Christian