Commit adb83f08 authored by Julien Muchembled's avatar Julien Muchembled

Fix backward compatibility issue with already built BT (thanks Aurélien)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30422 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9e3ff18a
......@@ -4479,7 +4479,7 @@ class LocalRolesTemplateItem(BaseTemplateItem):
# Function to generate XML Code Manually
def generateXml(self, path=None):
local_roles_dict, = self._objects[path]
local_roles_dict = self._objects[path][0]
# local roles
xml_data = '<local_roles_item>'
xml_data += '\n <local_roles>'
......@@ -4544,7 +4544,7 @@ class LocalRolesTemplateItem(BaseTemplateItem):
continue
path = roles_path.split('/')[1:]
obj = p.unrestrictedTraverse(path)
local_roles_dict, = self._objects[roles_path]
local_roles_dict = self._objects[roles_path][0]
setattr(obj, '__ac_local_roles__', local_roles_dict)
def uninstall(self, context, **kw):
......
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