Commit a19e00b5 authored by wenjie.zheng's avatar wenjie.zheng

Variable.py: add guard auto generator.

parent 4af43b68
......@@ -91,7 +91,8 @@ class Variable(XMLObject):
if self.info_guard is not None:
return self.info_guard
else:
return Guard().__of__(self) # Create a temporary guard.
self.generateGuard()
return self.guard
def getInfoGuardSummary(self):
res = None
......@@ -99,6 +100,7 @@ class Variable(XMLObject):
res = self.info_guard.getSummary()
return res
### zwj: originated from DC workflow; seems useless here?
def setProperties(self, description,
default_value='', default_expr='',
for_catalog=0, for_status=0,
......
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