Commit 3f79cb8c authored by Fabien Morin's avatar Fabien Morin

- remove an unused variable

- change a list variable name

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34215 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 045eae06
......@@ -1635,8 +1635,7 @@ class Base( CopyContainer,
key_list = kw.keys()
unordered_key_list = [k for k in key_list if k not in edit_order]
ordered_key_list = [k for k in edit_order if k in key_list]
second_try_key_list = []
restricted_method = []
restricted_method_list = []
if restricted:
# retrieve list of accessors which doesn't use default permissions
aq_key = self._aq_key()
......@@ -1650,7 +1649,7 @@ class Base( CopyContainer,
for permissions in prop_holder.__ac_permissions__:
if permissions[0] not in ('Access contents information', 'Modify portal content'):
for method in permissions[1]:
restricted_method.append(method)
restricted_method_list.append(method)
def setChangedPropertyList(key_list):
not_modified_list = []
......@@ -1673,7 +1672,7 @@ class Base( CopyContainer,
if not keep_existing or not self.hasProperty(key):
if restricted:
accessor_name = 'set' + UpperCase(key)
if accessor_name in restricted_method:
if accessor_name in restricted_method_list:
# will raise Unauthorized when not allowed
guarded_getattr(self, accessor_name)
modified_property_dict[key] = old_value
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment