Commit c0bb1665 authored by Hanno Schlichting's avatar Hanno Schlichting

Removed the deprecated ``five:containerEvents`` directive, which had been a...

Removed the deprecated ``five:containerEvents`` directive, which had been a no-op for quite a while.
parent d8a74886
......@@ -11,6 +11,9 @@ Trunk (unreleased)
Restructuring
+++++++++++++
- Removed the deprecated ``five:containerEvents`` directive, which had been
a no-op for quite a while.
- Removed Products.Five.fivedirectives.IBridgeDirective - a leftover from the
Interface to zope.interface bridging code.
......
......@@ -91,11 +91,6 @@ Declare menuItems
five ``http://namespaces.zope.org/five``
========================================
implements
----------
Make a class declare it implements an interface.
loadProducts
------------
......@@ -113,13 +108,6 @@ sizable
Retrieve size information for a Zope 2 content class via a Zope 3
style ``ISized`` adapter.
containerEvents
---------------
Make events be sent for Zope 2 container objects, instead of calling old
methods like ``manage_afterAdd``. These old methods will still be called
for classes specified in a ``deprecatedManageAddDelete`` directive.
deprecatedManageAddDelete
-------------------------
......
......@@ -18,14 +18,8 @@ Zope 2 objects.
$Id$
"""
import warnings
from OFS.subscribers import deprecatedManageAddDeleteClasses
def setContainerEvents():
warnings.warn("Using <five:containerEvents/> is deprecated (it is now "
"the default).",
DeprecationWarning)
def setDeprecatedManageAddDelete(class_):
"""Instances of the class will still see their old methods called."""
deprecatedManageAddDeleteClasses.append(class_)
......@@ -33,13 +27,6 @@ def setDeprecatedManageAddDelete(class_):
def cleanUp():
deprecatedManageAddDeleteClasses[:] = []
def containerEvents(_context):
_context.action(
discriminator=None,
callable=setContainerEvents,
args=(),
)
def deprecatedManageAddDelete(_context, class_):
_context.action(
discriminator=('five:deprecatedManageAddDelete', class_),
......
......@@ -47,9 +47,6 @@ class ISizableDirective(Interface):
required=True
)
class IContainerEventsDirective(Interface):
"""Global switch to enable container events
"""
class IDeprecatedManageAddDeleteDirective(Interface):
"""Call manage_afterAdd & co for these contained content classes.
......
......@@ -35,12 +35,6 @@
handler=".fiveconfigure.loadProductsOverrides"
/>
<meta:directive
name="containerEvents"
schema=".fivedirectives.IContainerEventsDirective"
handler=".eventconfigure.containerEvents"
/>
<meta:directive
name="deprecatedManageAddDelete"
schema=".fivedirectives.IDeprecatedManageAddDeleteDirective"
......
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