[Zope] redirect in python script ... raise error?

Tom Deprez tom.deprez@village.uunet.be
Sun, 17 Jun 2001 21:59:59 +0200


Hi all,

I'm trying to show a html page after I performed an action all this in a
python script.

I'm trying to redirect a page, but unfortunately, this doesn't work. I've
the following script

context.sql_methods.products_delete(aID=context.REQUEST['aID'])
url=context.REQUEST.URL1
raise 'Redirect', url

This will give me an sql error. (but the sql_method is correct).
If I remove the redirect rule, then everything works like it should exept
that I get my confirmation page

Is there a way to another way to a redirect? Otherwise I'm forced to go to
DTML-Methods :-(

Thanks in advance,

Tom.