Commit a9be9c18 authored by Boris Kocherov's avatar Boris Kocherov

Into getRoleInformationList,getActionInformationList added tuple objectValues

because CMFBTreeFolder.objectValues use LazyMap and object id is changed
while objectValues run.
This change should be included in 017d4d9a8d4ab3deac6efa8a94c0db1827b5882a
parent 6f0b9aff
......@@ -60,7 +60,8 @@ class ActionProviderBase(object):
'getActionInformationList')
def getActionInformationList(self):
"""Return all Action Information objects stored on this portal type"""
return self.objectValues(meta_type='ERP5 Action Information')
# tuple need because CMFBTreeFolder.objectValues use LazyMap and object id is changed while objectValues run
return tuple(self.objectValues(meta_type='ERP5 Action Information'))
#
# XXX CMF compatibility
......
......@@ -157,7 +157,8 @@ class LocalRoleAssignorMixIn(object):
'getRoleInformationList')
def getRoleInformationList(self):
"""Return all Role Information objects stored on this portal type"""
return self.objectValues(meta_type='ERP5 Role Information')
# tuple need because CMFBTreeFolder.objectValues use LazyMap and object id is changed while objectValues run
return tuple(self.objectValues(meta_type='ERP5 Role Information'))
security.declareProtected(Permissions.ModifyPortalContent,
'updateRoleMapping')
......
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