[Erp5-report] r43147 nicolas.dumazet - /erp5/trunk/products/ERP5Type/dynamic/lazy_class.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 8 03:30:03 CET 2011
Author: nicolas.dumazet
Date: Tue Feb 8 03:30:02 2011
New Revision: 43147
URL: http://svn.erp5.org?rev=43147&view=rev
Log:
rename setSecurity into setupSecurity to avoid clashing with a 'security' setter
that would be defined on an ERP5 object. (example: Documentation Helper)
Modified:
erp5/trunk/products/ERP5Type/dynamic/lazy_class.py
Modified: erp5/trunk/products/ERP5Type/dynamic/lazy_class.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dynamic/lazy_class.py?rev=43147&r1=43146&r2=43147&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/lazy_class.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/lazy_class.py [utf8] Tue Feb 8 03:30:02 2011
@@ -161,7 +161,7 @@ class PortalTypeMetaClass(GhostBaseMetaC
for subclass in PortalTypeMetaClass.getSubclassList(cls):
pmc_init_of(subclass)
- def setSecurity(cls):
+ def setupSecurity(cls):
# note that after this call the 'security' attribute will be gone.
InitializeClass(cls)
for subclass in PortalTypeMetaClass.getSubclassList(cls):
@@ -327,7 +327,7 @@ class PortalTypeMetaClass(GhostBaseMetaC
if len(base_tuple) > 1:
klass.generatePortalTypeAccessors(site)
# need to set %s__roles__ for generated methods
- cls.setSecurity()
+ cls.setupSecurity()
except Exception:
import traceback; traceback.print_exc()
More information about the Erp5-report
mailing list