Commit 9fe5def9 authored by Aurel's avatar Aurel

reindex object when updating local roles


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32751 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d7f84f1
...@@ -4715,6 +4715,7 @@ class LocalRolesTemplateItem(BaseTemplateItem): ...@@ -4715,6 +4715,7 @@ class LocalRolesTemplateItem(BaseTemplateItem):
obj = p.unrestrictedTraverse(path) obj = p.unrestrictedTraverse(path)
local_roles_dict = self._objects[roles_path][0] local_roles_dict = self._objects[roles_path][0]
setattr(obj, '__ac_local_roles__', local_roles_dict) setattr(obj, '__ac_local_roles__', local_roles_dict)
obj.reindexObject()
def uninstall(self, context, **kw): def uninstall(self, context, **kw):
p = context.getPortalObject() p = context.getPortalObject()
...@@ -4722,6 +4723,7 @@ class LocalRolesTemplateItem(BaseTemplateItem): ...@@ -4722,6 +4723,7 @@ class LocalRolesTemplateItem(BaseTemplateItem):
path = roles_path.split('/')[1:] path = roles_path.split('/')[1:]
obj = p.unrestrictedTraverse(path) obj = p.unrestrictedTraverse(path)
setattr(obj, '__ac_local_roles__', {}) setattr(obj, '__ac_local_roles__', {})
obj.reindexObject()
class BusinessTemplate(XMLObject): class BusinessTemplate(XMLObject):
""" """
......
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