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

Workflow.py: remove LOGs

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