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

InteractionWorkflow.py: fix isInfoSupported.

parent bd9594cc
...@@ -118,16 +118,10 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow): ...@@ -118,16 +118,10 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
''' '''
Returns a true value if the given info name is supported. Returns a true value if the given info name is supported.
''' '''
for x in self.objectValues(portal_type='Variable'): vdef = self.getVariableValueList().get(name, None)
if x.getReference() == name: if vdef is None:
vdef = x
break
if vdef is not None:
if vdef.getPortalType() == 'Variable':
return 1
return 0
return 0 return 0
return 1
security.declarePrivate('getInfoFor') security.declarePrivate('getInfoFor')
def getInfoFor(self, ob, name, default): def getInfoFor(self, ob, name, default):
......
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