Commit 568e7c96 authored by wenjie.zheng's avatar wenjie.zheng

Worklist.py: remove useless comments.

parent a0722829
...@@ -83,8 +83,7 @@ class Worklist(XMLObject): ...@@ -83,8 +83,7 @@ class Worklist(XMLObject):
def getGuard(self): def getGuard(self):
if self.guard is None: if self.guard is None:
self.generateGuard() self.generateGuard()
return self.guard ### only generate gurad when self is a User Action return self.guard
#return Guard().__of__(self) # Create a temporary guard.
def getGuardSummary(self): def getGuardSummary(self):
res = None res = None
...@@ -120,7 +119,6 @@ class Worklist(XMLObject): ...@@ -120,7 +119,6 @@ class Worklist(XMLObject):
res.sort() res.sort()
return res return res
### zwj: this function has been modified from original one
def getVarMatchKeys(self): def getVarMatchKeys(self):
key_list = [] key_list = []
if self.getMatchedSimulationState() is not None: if self.getMatchedSimulationState() is not None:
...@@ -133,7 +131,6 @@ class Worklist(XMLObject): ...@@ -133,7 +131,6 @@ class Worklist(XMLObject):
raise NotImplementedError(' Please only fill the field of the state variable defined in this workflow.') raise NotImplementedError(' Please only fill the field of the state variable defined in this workflow.')
return key_list return key_list
### zwj: this function has been modified from original one
def getVarMatch(self, id): def getVarMatch(self, id):
self.var_matches = {} self.var_matches = {}
matches = '' matches = ''
...@@ -234,4 +231,3 @@ class Worklist(XMLObject): ...@@ -234,4 +231,3 @@ class Worklist(XMLObject):
criteria.update(kw) criteria.update(kw)
return catalog.searchResults(**criteria) return catalog.searchResults(**criteria)
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