[Zope] <dtml-var expr="RESPONSE.redirect Question

Dylan Reinhardt zope at dylanreinhardt.com
Thu Sep 11 21:08:24 EDT 2003


On Thu, 2003-09-11 at 12:43, Alexander Alvarado wrote:
> Yes, that is what I want!!
> 
> So I used the Python expresion:
> 
> <dtml-var expr="RESPONSE.redirect('Disponibilidad?Arrival=%s&Departure=%s' %
> (REQUEST['dcArrival'], REQUEST['dcDeparture']))">
> 
> But it sends mi to the Zope Quick Start page, What am i doing wrong now??

Good question is Disponibilidad maybe the name of a folder that doesn't
have an index_html method?

For best results, you should use a *absolute* URL in redirect(), not a
*relative* URL such as you are currently using.  See if that doesn't
clear things up.

Also, it's not strictly necessary to say REQUEST['dcArrival'] unless
you're passing in the name of the variable at runtime.  Just typing
dcArrival should produce the same results.

HTH,

Dylan





More information about the Zope mailing list