Commit 9390b5a8 authored by Rafael Monnerat's avatar Rafael Monnerat

if we use _setPortalTypeName, One interaction workflow (using _set.*) is...

if we use _setPortalTypeName, One interaction workflow  (using _set.*) is trigged before any security is correct setted. There is no Reason to trigger this method on that time.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 602c9b92
...@@ -272,7 +272,10 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation, ...@@ -272,7 +272,10 @@ class ERP5TypeInformationMixIn( FactoryTypeInformation,
# Portal type has to be set before setting other attributes # Portal type has to be set before setting other attributes
# in order to initialize aq_dynamic # in order to initialize aq_dynamic
if hasattr(ob, '_setPortalTypeName'): if hasattr(ob, '_setPortalTypeName'):
ob._setPortalTypeName(self.getId()) #ob._setPortalTypeName(self.getId())
# XXX rafael: if we use _set because it is trigger by interaction
# workflow and it is annoyning without security setted
ob.portal_type = self.getId()
# Only try to assign roles to security groups if some roles are defined # Only try to assign roles to security groups if some roles are defined
# This is an optimisation to prevent defining local roles on subobjects # This is an optimisation to prevent defining local roles on subobjects
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment