Commit c666c055 authored by wenjie.zheng's avatar wenjie.zheng Committed by Sebastien Robin

Workflow.py: remove unsed LOG and imports.

parent ad197729
...@@ -59,7 +59,6 @@ from Products.ERP5Workflow.Document.Transition import TRIGGER_AUTOMATIC,\ ...@@ -59,7 +59,6 @@ from Products.ERP5Workflow.Document.Transition import TRIGGER_AUTOMATIC,\
TRIGGER_USER_ACTION, TRIGGER_WORKFLOW_METHOD TRIGGER_USER_ACTION, TRIGGER_WORKFLOW_METHOD
from tempfile import mktemp from tempfile import mktemp
from types import StringTypes from types import StringTypes
from zLOG import LOG, ERROR, DEBUG, WARNING
class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject): class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
""" """
...@@ -344,7 +343,6 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject): ...@@ -344,7 +343,6 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
'category': tdef.actbox_category, 'category': tdef.actbox_category,
'transition': tdef})) 'transition': tdef}))
fmt_data._pop() fmt_data._pop()
LOG("362 listing user action '%s'"%tid,WARNING," in Workflow.py")
res.sort() res.sort()
return [ result[1] for result in res ] return [ result[1] for result in res ]
...@@ -400,9 +398,6 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject): ...@@ -400,9 +398,6 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
# in case the current workflow is not associated with portal_types # in case the current workflow is not associated with portal_types
# defined on the worklist, don't display the worklist for this # defined on the worklist, don't display the worklist for this
# portal_type. # portal_type.
LOG ('420 portal type list are: %s'%portal_type_list, WARNING, ' in Workflow.py')
LOG ('421 matched portal type are: %s'%variable_match['portal_type'], WARNING, ' in Workflow.py')
LOG ('422 len of intersection portal type are: %s'%len(portal_type_intersection), WARNING, ' in Workflow.py')
variable_match['portal_type'] = list(portal_type_intersection) variable_match['portal_type'] = list(portal_type_intersection)
variable_match.setdefault('portal_type', portal_type_list) variable_match.setdefault('portal_type', portal_type_list)
...@@ -623,7 +618,6 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject): ...@@ -623,7 +618,6 @@ class Workflow(IdAsReferenceMixin("workflow_", "prefix"), XMLObject):
sci = StateChangeInfo( sci = StateChangeInfo(
document, self, former_status, tdef, old_sdef, new_sdef, kwargs) document, self, former_status, tdef, old_sdef, new_sdef, kwargs)
try: try:
#LOG('_executeTransition', 0, "script = %s, sci = %s" % (repr(script), repr(sci)))
script.execute(sci) # May throw an exception. script.execute(sci) # May throw an exception.
except ValidationFailed, validation_exc: except ValidationFailed, validation_exc:
before_script_success = 0 before_script_success = 0
......
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