Commit 41fb2314 authored by wenjie.zheng's avatar wenjie.zheng

Worklist.py: avoid changing None to tuple.

parent b1f324a8
...@@ -180,7 +180,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject): ...@@ -180,7 +180,7 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
matches_ref_list = [] matches_ref_list = []
if id == 'portal_type': if id == 'portal_type':
v = self.getMatchedPortalTypeList() v = self.getMatchedPortalTypeList()
matches = tuple(v) if v: matches = tuple(v)
elif id in ['validation_state', 'simulation_state']: elif id in ['validation_state', 'simulation_state']:
if id == 'validation_state': if id == 'validation_state':
matches_id_list = self.getMatchedValidationStateList() matches_id_list = self.getMatchedValidationStateList()
......
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