[Zope-Checkins] SVN: Zope/trunk/ Removed the deprecated ``five:containerEvents`` directive, which had been a no-op for quite a while.
Hanno Schlichting
hannosch at hannosch.eu
Fri Jan 1 12:55:13 EST 2010
Log message for revision 107509:
Removed the deprecated ``five:containerEvents`` directive, which had been a no-op for quite a while.
Changed:
U Zope/trunk/doc/CHANGES.rst
U Zope/trunk/src/Products/Five/doc/directives.txt
U Zope/trunk/src/Products/Five/eventconfigure.py
U Zope/trunk/src/Products/Five/fivedirectives.py
U Zope/trunk/src/Products/Five/meta.zcml
-=-
Modified: Zope/trunk/doc/CHANGES.rst
===================================================================
--- Zope/trunk/doc/CHANGES.rst 2010-01-01 17:48:24 UTC (rev 107508)
+++ Zope/trunk/doc/CHANGES.rst 2010-01-01 17:55:12 UTC (rev 107509)
@@ -11,6 +11,9 @@
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.
Modified: Zope/trunk/src/Products/Five/doc/directives.txt
===================================================================
--- Zope/trunk/src/Products/Five/doc/directives.txt 2010-01-01 17:48:24 UTC (rev 107508)
+++ Zope/trunk/src/Products/Five/doc/directives.txt 2010-01-01 17:55:12 UTC (rev 107509)
@@ -91,11 +91,6 @@
five ``http://namespaces.zope.org/five``
========================================
-implements
-----------
-
-Make a class declare it implements an interface.
-
loadProducts
------------
@@ -113,13 +108,6 @@
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
-------------------------
Modified: Zope/trunk/src/Products/Five/eventconfigure.py
===================================================================
--- Zope/trunk/src/Products/Five/eventconfigure.py 2010-01-01 17:48:24 UTC (rev 107508)
+++ Zope/trunk/src/Products/Five/eventconfigure.py 2010-01-01 17:55:12 UTC (rev 107509)
@@ -18,14 +18,8 @@
$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 cleanUp():
deprecatedManageAddDeleteClasses[:] = []
-def containerEvents(_context):
- _context.action(
- discriminator=None,
- callable=setContainerEvents,
- args=(),
- )
-
def deprecatedManageAddDelete(_context, class_):
_context.action(
discriminator=('five:deprecatedManageAddDelete', class_),
Modified: Zope/trunk/src/Products/Five/fivedirectives.py
===================================================================
--- Zope/trunk/src/Products/Five/fivedirectives.py 2010-01-01 17:48:24 UTC (rev 107508)
+++ Zope/trunk/src/Products/Five/fivedirectives.py 2010-01-01 17:55:12 UTC (rev 107509)
@@ -47,9 +47,6 @@
required=True
)
-class IContainerEventsDirective(Interface):
- """Global switch to enable container events
- """
class IDeprecatedManageAddDeleteDirective(Interface):
"""Call manage_afterAdd & co for these contained content classes.
Modified: Zope/trunk/src/Products/Five/meta.zcml
===================================================================
--- Zope/trunk/src/Products/Five/meta.zcml 2010-01-01 17:48:24 UTC (rev 107508)
+++ Zope/trunk/src/Products/Five/meta.zcml 2010-01-01 17:55:12 UTC (rev 107509)
@@ -36,12 +36,6 @@
/>
<meta:directive
- name="containerEvents"
- schema=".fivedirectives.IContainerEventsDirective"
- handler=".eventconfigure.containerEvents"
- />
-
- <meta:directive
name="deprecatedManageAddDelete"
schema=".fivedirectives.IDeprecatedManageAddDeleteDirective"
handler=".eventconfigure.deprecatedManageAddDelete"
More information about the Zope-Checkins
mailing list