[Erp5-report] r19071 - in /erp5/trunk/products/ERP5Type: Base.py ERP5Type.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Feb 5 18:47:47 CET 2008


Author: romain
Date: Tue Feb  5 18:47:45 2008
New Revision: 19071

URL: http://svn.erp5.org?rev=19071&view=rev
Log:
updateLocalRolesOnSecurityGroups needs to be unrestricted on ERP5Type instead 
of Base.

Modified:
    erp5/trunk/products/ERP5Type/Base.py
    erp5/trunk/products/ERP5Type/ERP5Type.py

Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=19071&r1=19070&r2=19071&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py (original)
+++ erp5/trunk/products/ERP5Type/Base.py Tue Feb  5 18:47:45 2008
@@ -3109,10 +3109,6 @@
     """Assign Local Roles to Groups on self, based on Portal Type Role
     Definitions and "ERP5 Role Definition" objects contained inside self.
     """
-    updateLocalRolesOnSecurityGroups = UnrestrictedMethod(self._updateLocalRolesOnSecurityGroups)
-    return updateLocalRolesOnSecurityGroups(**kw)
-
-  def _updateLocalRolesOnSecurityGroups(self, **kw):
     self._getTypesTool().getTypeInfo(self)\
                           .updateLocalRolesOnSecurityGroups(self, **kw)
 

Modified: erp5/trunk/products/ERP5Type/ERP5Type.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/ERP5Type.py?rev=19071&r1=19070&r2=19071&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/ERP5Type.py (original)
+++ erp5/trunk/products/ERP5Type/ERP5Type.py Tue Feb  5 18:47:45 2008
@@ -39,6 +39,7 @@
 from Products.ERP5Type import PropertySheet
 from Products.ERP5Type import _dtmldir
 from Products.ERP5Type import Permissions
+from Products.ERP5Type.UnrestrictedMethod import UnrestrictedMethod
 
 # Security uses ERP5Security by default
 try:
@@ -450,7 +451,12 @@
       return factory_method(portal, id).propertyMap()
 
     security.declarePrivate('updateLocalRolesOnSecurityGroups')
-    def updateLocalRolesOnSecurityGroups(self, ob, user_name=None,
+    def updateLocalRolesOnSecurityGroups(self, *args, **kw):
+      updateLocalRolesOnSecurityGroups = \
+        UnrestrictedMethod(self._updateLocalRolesOnSecurityGroups)
+      return updateLocalRolesOnSecurityGroups(*args, **kw)
+
+    def _updateLocalRolesOnSecurityGroups(self, ob, user_name=None,
                                          reindex=True):
       """
         Assign Local Roles to Groups on object 'ob', based on Portal Type Role




More information about the Erp5-report mailing list