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
Hamza
erp5
Commits
fc549c97
Commit
fc549c97
authored
May 13, 2015
by
wenjie.zheng
Committed by
Sebastien Robin
Jul 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patches/Expression.py: deploy universal method to get workflow scripts; correct a typo error.
parent
0b96534d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
product/ERP5Type/patches/Expression.py
product/ERP5Type/patches/Expression.py
+3
-10
No files found.
product/ERP5Type/patches/Expression.py
View file @
fc549c97
...
...
@@ -34,14 +34,7 @@ def Expression_createExprContext(sci):
'''
ob
=
sci
.
object
wf
=
sci
.
workflow
if
wf
.
getTypeInfo
().
getId
()
==
'Workflow'
or
\
wf
.
getTypeInfo
().
getId
()
==
'InteractionWorkflow'
:
script_list
=
wf
.
objectValues
(
portal_type
=
'Workflow Script'
)
scripts
=
{}
for
script
in
script_list
:
scripts
[
script
.
getId
()]
=
script
else
:
scripts
=
wf
.
scripts
scripts
=
wf
.
getScriptValueList
()
container
=
aq_parent
(
aq_inner
(
ob
))
data
=
{
'here'
:
ob
,
...
...
@@ -64,7 +57,7 @@ def Expression_createExprContext(sci):
Expression
.
createExprContext
=
Expression_createExprContext
def
StateChan
c
eInfo_getHistory
(
self
):
def
StateChan
g
eInfo_getHistory
(
self
):
wf
=
self
.
workflow
if
getattr
(
wf
,
'getTypeInfo'
):
tool
=
wf
.
getPortalObject
().
portal_workflow
...
...
@@ -78,5 +71,5 @@ def StateChanceInfo_getHistory(self):
else
:
return
()
StateChangeInfo
.
getHistory
=
StateChan
c
eInfo_getHistory
StateChangeInfo
.
getHistory
=
StateChan
g
eInfo_getHistory
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