Commit ec223007 authored by Nicolas Dumazet's avatar Nicolas Dumazet

rename setSecurity into setupSecurity to avoid clashing with a 'security' setter

that would be defined on an ERP5 object. (example: Documentation Helper)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5063e57c
......@@ -161,7 +161,7 @@ class PortalTypeMetaClass(GhostBaseMetaClass, PropertyHolder):
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(GhostBaseMetaClass, PropertyHolder):
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()
......
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