From ec223007167ad27415c3cfa11e42f3933456d4ad Mon Sep 17 00:00:00 2001
From: Nicolas Dumazet <nicolas.dumazet@nexedi.com>
Date: Tue, 8 Feb 2011 02:30:02 +0000
Subject: [PATCH] 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
---
 product/ERP5Type/dynamic/lazy_class.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5Type/dynamic/lazy_class.py b/product/ERP5Type/dynamic/lazy_class.py
index e47783b230..e0410b2c7c 100644
--- a/product/ERP5Type/dynamic/lazy_class.py
+++ b/product/ERP5Type/dynamic/lazy_class.py
@@ -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()
-- 
2.30.9