Commit ab4ef850 authored by iv's avatar iv

ERP5Workflow: remove storage id in properties from Workflow property sheet

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