Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Products.DCWorkflow
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Products.DCWorkflow
Commits
7d95a8e7
Commit
7d95a8e7
authored
Feb 19, 2011
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- removed support for deprecated '_isPortalRoot' marker
parent
4df03d3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
Products/DCWorkflow/CHANGES.txt
Products/DCWorkflow/CHANGES.txt
+2
-0
Products/DCWorkflow/Expression.py
Products/DCWorkflow/Expression.py
+2
-14
No files found.
Products/DCWorkflow/CHANGES.txt
View file @
7d95a8e7
...
...
@@ -4,6 +4,8 @@ Products.DCWorkflow Changelog
2.3.0-alpha (unreleased)
------------------------
- StateChangeInfo: Removed support for deprecated '_isPortalRoot' marker.
- Hardened XML import parsing against missing boolean attributes.
(https://bugs.launchpad.net/zope-cmf/+bug/707927)
...
...
Products/DCWorkflow/Expression.py
View file @
7d95a8e7
...
...
@@ -11,12 +11,8 @@
#
##############################################################################
""" Expressions in a web-configurable workflow.
$Id$
"""
from
warnings
import
warn
from
AccessControl.SecurityInfo
import
ClassSecurityInfo
from
AccessControl.SecurityManagement
import
getSecurityManager
from
Acquisition
import
aq_inner
...
...
@@ -26,9 +22,10 @@ from DateTime.DateTime import DateTime
from
Products.PageTemplates.Expressions
import
getEngine
from
Products.PageTemplates.Expressions
import
SecureModuleImporter
from
Products.CMFCore.WorkflowCore
import
ObjectDeleted
,
ObjectMoved
from
Products.CMFCore.Expression
import
Expression
# BBB: old location
from
Products.CMFCore.interfaces
import
ISiteRoot
from
Products.CMFCore.WorkflowCore
import
ObjectDeleted
from
Products.CMFCore.WorkflowCore
import
ObjectMoved
# We don't import SafeMapping from Products.PageTemplates.TALES
...
...
@@ -103,14 +100,6 @@ class StateChangeInfo:
while
ob
is
not
None
:
if
ISiteRoot
.
providedBy
(
ob
):
return
ob
if
getattr
(
ob
,
'_isPortalRoot'
,
None
)
is
not
None
:
# BBB
warn
(
"The '_isPortalRoot' marker attribute for site "
"roots is deprecated and will be removed in "
"CMF 2.3; please mark the root object with "
"'ISiteRoot' instead."
,
DeprecationWarning
,
stacklevel
=
2
)
return
ob
ob
=
aq_parent
(
ob
)
return
None
...
...
@@ -148,4 +137,3 @@ def createExprContext(sci):
'scripts'
:
wf
.
scripts
,
}
return
getEngine
().
getContext
(
data
)
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