[Erp5-dev] Proxy role not working for workflow transitions?
Jérôme Perrin
jerome at nexedi.com
Tue Mar 13 08:41:59 CET 2007
Le Lundi 12 Mars 2007 17:09, Alexandre Boeglin a écrit :
> Le samedi 10 mars 2007 à 15:16 +0100, Jacek Medrzycki a écrit :
> > When I change the role on reject_action from Manager to Assignor, the
> > scripts works well. It looks like the proxy role does not apply to
> > workflow transition attempt.
>
> That's exactly the issue: proxy roles in zope (at least in 2.7, I
> haven't checked in other releases) is a bit of a hack. If it is not
> handled explicitely, it is just not handled at all. a simple grep for
> _proxy_roles in the Products can tell you this.
The issue is also that each time we get an unauthorized error, we think proxy
role ;) here it's different, you should call the workflow method. Workflow
methods define the logic of the workflow, *_action transitions are for user
interaction.
Jérome
More information about the Erp5-dev
mailing list