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
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Lu Xu
erp5
Commits
a95a5a8e
Commit
a95a5a8e
authored
Jan 13, 2012
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup.
parent
503753d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
product/ERP5Type/patches/DCWorkflow.py
product/ERP5Type/patches/DCWorkflow.py
+3
-7
No files found.
product/ERP5Type/patches/DCWorkflow.py
View file @
a95a5a8e
...
...
@@ -21,8 +21,7 @@ from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition, StateChangeInfo
from
Products.DCWorkflow.DCWorkflow
import
ObjectDeleted
,
ObjectMoved
,
aq_parent
,
aq_inner
from
Products.DCWorkflow
import
DCWorkflow
from
Products.DCWorkflow.Transitions
import
TRIGGER_WORKFLOW_METHOD
,
TransitionDefinition
from
AccessControl
import
getSecurityManager
,
ClassSecurityInfo
,
\
ModuleSecurityInfo
,
Unauthorized
from
AccessControl
import
getSecurityManager
,
ModuleSecurityInfo
,
Unauthorized
from
Products.CMFCore.utils
import
getToolByName
from
Products.CMFCore.WorkflowCore
import
WorkflowException
from
Products.CMFCore.utils
import
_getAuthenticatedUser
...
...
@@ -30,15 +29,13 @@ from DocumentTemplate.DT_Util import TemplateDict
from
DateTime
import
DateTime
from
Products.ERP5Type.Cache
import
CachingMethod
from
Products.ERP5Type.Utils
import
convertToMixedCase
from
string
import
join
import
sys
from
zLOG
import
LOG
from
Acquisition
import
aq_base
from
copy
import
deepcopy
# Patch WorkflowUIMixin to add description on workflows
from
Products.DCWorkflow.WorkflowUIMixin
import
WorkflowUIMixin
as
WorkflowUIMixin_class
from
Products.DCWorkflow.Guard
import
Guard
,
_checkPermission
,
createExprContext
,
StateChangeInfo
from
Products.DCWorkflow.Guard
import
Guard
,
_checkPermission
ACTIVITY_GROUPING_COUNT
=
100
...
...
@@ -155,7 +152,7 @@ def DCWorkflowDefinition_listGlobalActions(self, info):
catalog
=
portal
.
portal_catalog
for
k
in
var_match_keys
:
v
=
qdef
.
getVarMatch
(
k
)
if
instance
(
v
,
Expression
):
if
i
si
nstance
(
v
,
Expression
):
v_fmt
=
v
(
createExprContext
(
StateChangeInfo
(
portal
,
self
,
kwargs
=
info
.
__dict__
.
copy
())))
else
:
...
...
@@ -240,7 +237,6 @@ def DCWorkflowDefinition_getWorklistVariableMatchDict(self, info,
return
None
variable_match_dict
=
{}
security_manager
=
getSecurityManager
()
workflow_tool
=
portal
.
portal_workflow
workflow_id
=
self
.
id
workflow_title
=
self
.
title
for
worklist_id
,
worklist_definition
in
self
.
worklists
.
items
():
...
...
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