Commit 38607014 authored by iv's avatar iv

ERP5Workflow: remove storage id in properties from Workflow property sheet

parent 73f3f608
......@@ -30,7 +30,9 @@
</item>
<item>
<key> <string>storage_id</string> </key>
<value> <string>manager_bypass</string> </value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
......
......@@ -83,7 +83,9 @@
</item>
<item>
<key> <string>storage_id</string> </key>
<value> <string>managed_permission_list</string> </value>
<value>
<none/>
</value>
</item>
</dictionary>
</pickle>
......
......@@ -68,7 +68,7 @@ class PermissionRoles(XMLObject):
role_id = int(self.id.split('_')[2])
# zwj: make sure here gets the right coordinates
workflow = self.getParent().getParent()
permission_list = sorted(workflow.getManagedPermissionList())
permission_list = sorted(workflow.getWorkflowManagedPermissionList())
role_list = workflow.getManagedRoleList()
permission = permission_list[permission_id]
role = role_list[role_id]
......
......@@ -76,7 +76,7 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
isPortalContent = 1
isRADContent = 1
default_reference = ''
managed_permission_list = ()
workflow_managed_permission_list = ()
managed_role = ()
erp5_permission_roles = {} # { permission: [role] or (role,) }
manager_bypass = 0
......@@ -143,9 +143,6 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
"""
return DateTime()
def getManagedPermissionList(self):
return self.managed_permission_list
def getStateChangeInformation(self, document, state, transition=None):
"""
Return an object used for variable tales expression.
......@@ -226,7 +223,6 @@ class Workflow(IdAsReferenceMixin("", "prefix"), XMLObject):
"""
changed = 0
sdef = self._getWorkflowStateOf(document, id_only=0)
managed_permission = self.getManagedPermissionList()
if sdef is None:
return 0
# zwj: get all matrix cell objects
......
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