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

Workflow.py: remove LOGs

parent e06cfd3c
......@@ -395,12 +395,10 @@ class Workflow(XMLObject):
for key in worklist_definition.getVarMatchKeys():
var = worklist_definition.getVarMatch(key)
if isinstance(var, Expression):
LOG('var %s is an Expression'%var,WARNING, 'in Workflow.py 398')
evaluated_value = var(Expression_createExprContext(StateChangeInfo(portal,
self, kwargs=info.__dict__.copy())))
if isinstance(evaluated_value, (str, int, long)):
evaluated_value = [str(evaluated_value)]
LOG('evaluated_value %s is a str in long'%var, WARNING, 'in Workflow.py 403')
else:
evaluated_value = [x % info for x in var]
variable_match[key] = evaluated_value
......@@ -449,7 +447,6 @@ class Workflow(XMLObject):
if len(variable_match_dict) == 0:
return None
return variable_match_dict
# ============================================================================
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