Commit 04fd37a9 authored by Jérome Perrin's avatar Jérome Perrin

Zope 2.7 ExtensionClass instances cannot be __hash__'ed


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18017 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 15403213
......@@ -105,16 +105,17 @@ def getDocumentGroupByWorkflowStateList(self, **kw):
for state_var in possible_state_list:
for workflow in wf_tool.getWorkflowsFor(document):
if state_var == workflow.variables.getStateVar():
key = (document.getPortalTypeName(), workflow,
key = (document.getPortalTypeName(), workflow.getId(),
document.getProperty(state_var))
document_count = workflow_state_dict.get(key, [None, 0])[1]
workflow_state_dict[key] = document, document_count + 1
counter = 0
for (ptype, workflow, state), (doc, document_count) in\
for (ptype, workflow_id, state), (doc, document_count) in\
workflow_state_dict.items():
counter += 1
workflow = wf_tool.getWorkflowById(workflow_id)
state_var = workflow.variables.getStateVar()
translated_workflow_state_title = doc.getProperty(
'translated_%s_title' % state_var)
......
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