Commit 3abb799f authored by Kevin Deldycke's avatar Kevin Deldycke

Fix bad dict initialization.

Delete endline spaces.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8228 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5436e425
...@@ -49,6 +49,7 @@ def DCWorkflowDefinition_listGlobalActions(self, info): ...@@ -49,6 +49,7 @@ def DCWorkflowDefinition_listGlobalActions(self, info):
for id, qdef in self.worklists.items(): for id, qdef in self.worklists.items():
if qdef.actbox_name: if qdef.actbox_name:
guard = qdef.guard guard = qdef.guard
dict = {}
# Patch for ERP5 by JP Smets in order # Patch for ERP5 by JP Smets in order
# to implement worklists and search of local roles # to implement worklists and search of local roles
searchres_len = 0 searchres_len = 0
...@@ -56,7 +57,6 @@ def DCWorkflowDefinition_listGlobalActions(self, info): ...@@ -56,7 +57,6 @@ def DCWorkflowDefinition_listGlobalActions(self, info):
if var_match_keys: if var_match_keys:
# Check the catalog for items in the worklist. # Check the catalog for items in the worklist.
catalog = getToolByName(self, 'portal_catalog') catalog = getToolByName(self, 'portal_catalog')
dict = {}
for k in var_match_keys: for k in var_match_keys:
v = qdef.getVarMatch(k) v = qdef.getVarMatch(k)
v_fmt = map(lambda x, info=info: x%info, v) v_fmt = map(lambda x, info=info: x%info, v)
......
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