[Erp5-report] r19073 - /erp5/trunk/products/ERP5Type/ERP5Type.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 5 18:50:14 CET 2008
Author: romain
Date: Tue Feb 5 18:50:14 2008
New Revision: 19073
URL: http://svn.erp5.org?rev=19073&view=rev
Log:
Call finishConstruction after generating local roles on object, in order to
prevent Unauthorized error on workflow transition's condition.
Modified:
erp5/trunk/products/ERP5Type/ERP5Type.py
Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=19073&r1=19072&r2=19073&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py Tue Feb 5 18:50:14 2008
@@ -278,7 +278,6 @@
# Then keep on the construction process
ob = self._constructInstance(container, id, *args, **kw)
- ob = self._finishConstruction(ob)
# Only try to assign roles to security groups if some roles are defined
# This is an optimisation to prevent defining local roles on subobjects
@@ -287,6 +286,8 @@
# set a local role definition if the local role list is empty
if len(self._roles):
self.updateLocalRolesOnSecurityGroups(ob)
+
+ ob = self._finishConstruction(ob)
if self.init_script :
# Acquire the init script in the context of this object
More information about the Erp5-report
mailing list