Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
ce2e49e1
Commit
ce2e49e1
authored
Sep 14, 2015
by
wenjie.zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expression.py: patch createExprContent directly on the original function.
parent
df87b9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
product/ERP5Type/patches/Expression.py
product/ERP5Type/patches/Expression.py
+6
-4
No files found.
product/ERP5Type/patches/Expression.py
View file @
ce2e49e1
...
...
@@ -14,8 +14,8 @@
# Expression patch
from
Products.CMFCore.Expression
import
Expression
from
Products.DCWorkflow
.Expression
import
createExprContext
from
Products.CMFCore.Expression
import
Expression
as
CMFCore_Expression
from
Products.DCWorkflow
import
Expression
from
Acquisition
import
aq_inner
from
Acquisition
import
aq_parent
from
Products.PageTemplates.Expressions
import
getEngine
...
...
@@ -26,11 +26,11 @@ from Products.DCWorkflow.Expression import StateChangeInfo
def
Expression_hash
(
self
):
return
hash
(
self
.
text
)
Expression
.
__hash__
=
Expression_hash
CMFCore_
Expression
.
__hash__
=
Expression_hash
# compatibility according to the new structure of workflow:
# deploy script getter to return a list of script.
def
createExprContext
(
sci
):
def
_
createExprContext
(
sci
):
'''
An expression context provides names for TALES expressions.
'''
...
...
@@ -56,3 +56,5 @@ def createExprContext(sci):
'scripts'
:
scripts
,
}
return
getEngine
().
getContext
(
data
)
Expression
.
createExprContext
=
_createExprContext
\ No newline at end of file
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