Commit 3358be5f authored by wenjie.zheng's avatar wenjie.zheng

Worklist.py: return a tuple of matched portal type id if matched key is portal type.

parent 600f1402
...@@ -135,12 +135,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject): ...@@ -135,12 +135,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
matches = None matches = None
matches_ref_list = [] matches_ref_list = []
if id == 'portal_type': if id == 'portal_type':
v = ''.join(self.matched_portal_type) matches = self.getMatchedPortalTypeList()
if tales_re.match(v).group(1):
matches = Expression(v)
else:
v = [ var.strip() for var in self.matched_portal_type ]
matches = tuple(v)
if id in ['validation_state', 'simulation_state']: if id in ['validation_state', 'simulation_state']:
if id == 'validation_state': if id == 'validation_state':
......
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