From 65a65bb6351f1d3c4df4012f86a06c9d456a914e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 3 Dec 2008 11:40:48 +0000 Subject: [PATCH] because this block was not indented, local roles were always reinstalled. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24777 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/BusinessTemplate.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 631d16733f..884050a1f2 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -4243,11 +4243,11 @@ class LocalRolesTemplateItem(BaseTemplateItem): action = update_dict[roles_path] if action == 'nothing': continue - path = roles_path.split('/')[1:] - obj = p.unrestrictedTraverse(path) - local_roles_dict, group_local_roles_dict = self._objects[roles_path] - setattr(obj, '__ac_local_roles__', local_roles_dict) - setattr(obj, '__ac_local_group_roles__', group_local_roles_dict) + path = roles_path.split('/')[1:] + obj = p.unrestrictedTraverse(path) + local_roles_dict, group_local_roles_dict = self._objects[roles_path] + setattr(obj, '__ac_local_roles__', local_roles_dict) + setattr(obj, '__ac_local_group_roles__', group_local_roles_dict) def uninstall(self, context, **kw): p = context.getPortalObject() -- 2.30.9