Commit 427d354d authored by wenjie.zheng's avatar wenjie.zheng

Worklist.py: in getVarMatchKeys(), using list accessors when the properties are multiple values.

parent 58afc35c
...@@ -165,11 +165,11 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject): ...@@ -165,11 +165,11 @@ class Worklist(IdAsReferenceMixin("worklist_", "prefix"), XMLObject):
def getVarMatchKeys(self): def getVarMatchKeys(self):
key_list = [] key_list = []
if self.getMatchedPortalType() is not None: if self.getMatchedPortalTypeList() is not None:
key_list.append('portal_type') key_list.append('portal_type')
if self.getMatchedSimulationState() is not None: if self.getMatchedSimulationStateList() is not None:
key_list.append('simulation_state') key_list.append('simulation_state')
if self.getMatchedValidationState() is not None: if self.getMatchedValidationStateList() is not None:
key_list.append('validation_state') key_list.append('validation_state')
if self.getMatchedCausalityState() is not None: if self.getMatchedCausalityState() is not None:
key_list.append('causality_state') key_list.append('causality_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