Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Amer
erp5
Commits
c666c055
Commit
c666c055
authored
May 13, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workflow.py: remove unsed LOG and imports.
parent
ad197729
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
product/ERP5Workflow/Document/Workflow.py
product/ERP5Workflow/Document/Workflow.py
+0
-6
No files found.
product/ERP5Workflow/Document/Workflow.py
View file @
c666c055
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment