From 8c6631fc3d44e614970ef1040b25a4c2c4c6be55 Mon Sep 17 00:00:00 2001 From: Jean-Paul Smets <jp@nexedi.com> Date: Sun, 8 Feb 2004 13:51:08 +0000 Subject: [PATCH] addPermission changed to addPortalContent fixed Solanes typo use of base_category instead of base_category_id git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@402 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/Coramy/Document/SetMappedValue.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/product/Coramy/Document/SetMappedValue.py b/product/Coramy/Document/SetMappedValue.py index dd295e5de9..2bb90307a6 100755 --- a/product/Coramy/Document/SetMappedValue.py +++ b/product/Coramy/Document/SetMappedValue.py @@ -1,7 +1,7 @@ ############################################################################## # # Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved. -# Jean-Paul Smets-Solane <jp@nexedi.com> +# Jean-Paul Smets-Solanes <jp@nexedi.com> # # WARNING: This program as such is intended to be used by professional # programmers who take the whole responsability of assessing all potential @@ -44,7 +44,7 @@ class SetMappedValue(ERP5SetMappedValue): """ meta_type = 'CORAMY Set Mapped Value' portal_type = 'Set Mapped Value' - add_permission = Permissions.AddERP5Content + add_permission = Permissions.AddPortalContent isPortalContent = 1 isRADContent = 1 @@ -119,11 +119,11 @@ identify a bank account.""" """ result = 1 for c in self.getPredicateValueList(): - base_category_id = c.split('/')[0] - if base_category_id in ('coloris', 'morphologie', 'variante'): + base_category = c.split('/')[0] + if base_category in ('coloris', 'morphologie', 'variante'): # Classes of equivalences category_id = c.split('/')[-1] - for context_category in context._getCategoryMembershipList(base_category_id, base=1): + for context_category in context._getCategoryMembershipList(base_category, base=1): #result = result and (context_category.find(category_id) >= 0) result = result and (context_category.split('/')[-1] == category_id) else: -- 2.30.9