[Erp5-dev] acquire local roles removed on Sale Invoice Transaction, accepting it but not everything works
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Tue Sep 18 13:56:18 CEST 2007
Hello,
On 2007-09-17, 18:07:23
Jérome Perrin <jerome at nexedi.com> wrote:
(...)
> ERP5Type.ERP5Type.constructInstance calls _finishConstruction,
which
> calls notifyWorkflowCreated before this line:
> if len(self._roles):
> self.updateLocalRolesOnSecurityGroups(ob)
>
> notifyWorkflowCreated will pass all possible workflow transitions. If
> this is where your problem happen, can you try to call
> "updateLocalRolesOnSecurityGroups" before _finishConstruction ?
>
> ( I'm not sure updateLocalRolesOnSecurityGroups works if
> _setPortalTypeName hasn't been called before. )
Huh... Great tip! It is working right now, with attached patch. I'll
monkey-patch it in our system and we'll see if unit tests pass.
Regards,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ERP5Type.py-patch-shufla-resolved
Type: application/octet-stream
Size: 978 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070918/db8c6475/attachment.obj>
More information about the Erp5-dev
mailing list