From daf93e212eacac4c0fc2bcede912932d378f3625 Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine <arnaud.fontaine@nexedi.com> Date: Tue, 16 Nov 2010 10:39:57 +0000 Subject: [PATCH] Read and write permission of Standard and Acquired Property views should have always been a list of available permissions as defined in Products.ERP5Type.Permissions git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@40300 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/Tool/PropertySheetTool.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/product/ERP5Type/Tool/PropertySheetTool.py b/product/ERP5Type/Tool/PropertySheetTool.py index 96ddde8183..4008434a41 100644 --- a/product/ERP5Type/Tool/PropertySheetTool.py +++ b/product/ERP5Type/Tool/PropertySheetTool.py @@ -267,3 +267,13 @@ class PropertySheetTool(BaseTool): property_holder, property_sheet.getId(), 'erp5.zodb_accessor_holder') + + security.declareProtected(Permissions.ManagePortal, + 'getPropertyAccessorPermissionList') + def getPropertyAvailablePermissionList(self): + """ + Return a sorted set of all the permissions useful for read/write + permissions for properties of ZODB Property Sheets + """ + return sorted(set([ value for key, value in Permissions.__dict__.iteritems() \ + if key[0].isupper() ])) -- 2.30.9