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):
'''
Returns a true value if the given info name is supported.
'''
for x in self.objectValues(portal_type='Variable'):
if x.getReference() == name:
vdef = x
break
if vdef is not None:
if vdef.getPortalType() == 'Variable':
return 1
return 0
return 0
vdef = self.getVariableValueList().get(name, None)
if vdef is None:
return 0
return 1
security.declarePrivate('getInfoFor')
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