[Erp5-report] r43249 nicolas.dumazet - /erp5/trunk/products/ERP5Type/dynamic/
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Feb 10 05:57:36 CET 2011
Author: nicolas.dumazet
Date: Thu Feb 10 05:57:35 2011
New Revision: 43249
URL: http://svn.erp5.org?rev=43249&view=rev
Log:
fix tuple definition
Modified:
erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py
Modified: erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py?rev=43249&r1=43248&r2=43249&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/dynamic/accessor_holder.py [utf8] Thu Feb 10 05:57:35 2011
@@ -44,8 +44,8 @@ from Products.ERP5Type.Globals import In
from zLOG import LOG, ERROR, INFO
class AccessorHolderType(type):
- _skip_permission_set = set(Permissions.AccessContentsInformation,
- Permissions.ModifyPortalContent)
+ _skip_permission_tuple = (Permissions.AccessContentsInformation,
+ Permissions.ModifyPortalContent)
def registerAccessor(cls,
accessor,
permission):
@@ -53,7 +53,7 @@ class AccessorHolderType(type):
setattr(cls, accessor_name, accessor)
# private accessors do not need declarative security
if accessor_name[0] != '_' and \
- permission not in AccessorHolderType._skip_permission_set:
+ permission not in AccessorHolderType._skip_permission_tuple:
cls.security.declareProtected(permission, accessor_name)
@classmethod
More information about the Erp5-report
mailing list