[Erp5-dev] redirection from workflow scripts

Jérôme Perrin jerome at nexedi.com
Mon Oct 2 13:27:18 CEST 2006


Le Mardi 26 Septembre 2006 20:29, Bartek Gorny a écrit :
> Hello
>
> Is it possible to send a redirect from interaction workflow script?

I don't think so.
You can try:
 raise 'Redirect', url
but the transaction will be aborted, which is probably not what you want.

> The point is that in certain conditions I need to create a new object,
> instead of editing the current one, and the best thing would be to
> immediately redirect the user to the new one.

Probably it's better to make an explicit action on your portal type that will 
create the new object.

-- 
Jérome



More information about the Erp5-dev mailing list