[Zope] ZPT to Python(script) to a different page

Paul Winkler pw_lists@slinkp.com
Fri, 18 Jul 2003 10:02:31 -0400


On Fri, Jul 18, 2003 at 08:59:03AM +0200, Paolo Dina wrote:
> >If the validation passes,
> >I would like the user's browser
> >to display different ZPTs based on 
> >the script's decision logic.
> 
> Try to use redirect.
> 
> In case of error you return an error message; why in case of succes 
> you don't follow this way?:
> 
> return r.RESPONSE.redirect('success.html')
> ( where r = context.REQUEST )

actually, with RESPONSE.redirect, you don't need to return anything.
It doesn't hurt, but it doesn't do anything either :)

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's ANCIENT  PUNISHER!
(random hero from isometric.spaceninja.com)