Commit 2cc142ce authored by Yoshinori Okuji's avatar Yoshinori Okuji

Disable excessive LOG calls.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3127 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09d647c7
...@@ -552,7 +552,7 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition): ...@@ -552,7 +552,7 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition):
sci = StateChangeInfo( sci = StateChangeInfo(
ob, self, former_status, tdef, old_sdef, new_sdef, kwargs) ob, self, former_status, tdef, old_sdef, new_sdef, kwargs)
try: try:
LOG('_executeTransition', 0, "script = %s, sci = %s" % (repr(script), repr(sci))) #LOG('_executeTransition', 0, "script = %s, sci = %s" % (repr(script), repr(sci)))
script(sci) # May throw an exception. script(sci) # May throw an exception.
except ValidationFailed, validation_exc: except ValidationFailed, validation_exc:
before_script_success = 0 before_script_success = 0
...@@ -622,7 +622,7 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition): ...@@ -622,7 +622,7 @@ class ERP5DCWorkflowDefinition (DCWorkflowDefinition):
# Execute the "after" script. # Execute the "after" script.
if tdef is not None and tdef.after_script_name: if tdef is not None and tdef.after_script_name:
# Script can be either script or workflow method # Script can be either script or workflow method
LOG('_executeTransition', 0, 'new_sdef.transitions = %s' % (repr(new_sdef.transitions))) #LOG('_executeTransition', 0, 'new_sdef.transitions = %s' % (repr(new_sdef.transitions)))
if tdef.after_script_name in filter(lambda k: self.transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD, if tdef.after_script_name in filter(lambda k: self.transitions[k].trigger_type == TRIGGER_WORKFLOW_METHOD,
new_sdef.transitions): new_sdef.transitions):
script = getattr(ob, convertToMixedCase(tdef.after_script_name)) script = getattr(ob, convertToMixedCase(tdef.after_script_name))
......
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