Commit 7d95a8e7 authored by 's avatar

- removed support for deprecated '_isPortalRoot' marker

parent 4df03d3c
......@@ -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)
......
......@@ -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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment