[Erp5-report] r30312 - /erp5/trunk/products/ERP5Type/ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Nov 4 20:04:32 CET 2009


Author: jm
Date: Wed Nov  4 20:04:31 2009
New Revision: 30312

URL: http://svn.erp5.org?rev=30312&view=rev
Log:
Do not reindex object security on newly created objects

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=30312&r1=30311&r2=30312&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py [utf8] Wed Nov  4 20:04:31 2009
@@ -378,7 +378,7 @@
           # workflow and it is annoyning without security setted
           ob.portal_type = self.getId()
 
-        self.updateLocalRolesOnDocument(ob)
+        self.updateLocalRolesOnDocument(ob, reindex=False)
 
         # notify workflow after generating local roles, in order to prevent
         # Unauthorized error on transition's condition




More information about the Erp5-report mailing list