Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
erp5
Commits
b5510ec4
Commit
b5510ec4
authored
Jul 10, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Worklist.py: fix returned matches value reference instead of id.
parent
a4c2c46b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
product/ERP5Workflow/Document/Worklist.py
product/ERP5Workflow/Document/Worklist.py
+11
-2
No files found.
product/ERP5Workflow/Document/Worklist.py
View file @
b5510ec4
...
@@ -131,6 +131,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
...
@@ -131,6 +131,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
return key_list
return key_list
def getVarMatch(self, id):
def getVarMatch(self, id):
""" return value of matched keys"""
self.var_matches = {}
self.var_matches = {}
matches = ''
matches = ''
if id == '
portal_type
':
if id == '
portal_type
':
...
@@ -142,9 +143,17 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
...
@@ -142,9 +143,17 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
v = [ var.strip() for var in self.getMatchedPortalTypeList() ]
v = [ var.strip() for var in self.getMatchedPortalTypeList() ]
matches = tuple(v)
matches = tuple(v)
elif id == '
validation_state
':
elif id == '
validation_state
':
matches = tuple([self.getMatchedValidationStateList()])
matches_id_list = self.getMatchedValidationStateList()
matches_ref_list = []
for state_id in matches_id_list:
matches_ref_list.append(self.getParent()._getOb(state_id).getReference())
matches = tuple(matches_ref_list)
elif id == '
simulation_stae
':
elif id == '
simulation_stae
':
matches = tuple([self.getMatchedSimulationStateList()])
matches_id_list = self.getMatchedSimulationStateList()
matches_ref_list = []
for state_id in matches_id_list:
matches_ref_list.append(self.getParent()._getOb(state_id).getReference())
matches = tuple(matches_ref_list)
else:
else:
raise NotImplementedError ("Cataloged variable matching error in Worklist.py")
raise NotImplementedError ("Cataloged variable matching error in Worklist.py")
if matches is not None:
if matches is not None:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment