Commit 2722d446 authored by Chris McDonough's avatar Chris McDonough

- Break runtime dependency on ``zope.app.dependable`` by using a zcml

  condition on the qsubscriber ZCML directive that registers the
  CheckDependency handler for IObjectRemovedEvent.  If
  ``zope.app.dependable`` is not installed, this subscriber will never
  be registered.  ``zope.app.dependable`` is now a testing dependency
  only.
parent dce350bb
...@@ -11,6 +11,13 @@ CHANGES ...@@ -11,6 +11,13 @@ CHANGES
dependencies on zope.traversing are currently interface dependencies on zope.traversing are currently interface
dependencies. dependencies.
- Break runtime dependency on ``zope.app.dependable`` by using a zcml
condition on the qsubscriber ZCML directive that registers the
CheckDependency handler for IObjectRemovedEvent. If
``zope.app.dependable`` is not installed, this subscriber will never
be registered. ``zope.app.dependable`` is now a testing dependency
only.
3.8.1 (2009-04-03) 3.8.1 (2009-04-03)
------------------ ------------------
......
...@@ -61,6 +61,7 @@ setup(name='zope.container', ...@@ -61,6 +61,7 @@ setup(name='zope.container',
test=['zope.copypastemove', test=['zope.copypastemove',
'zope.app.testing', 'zope.app.testing',
'zope.app.component', 'zope.app.component',
'zope.app.dependable',
]), ]),
install_requires=['setuptools', install_requires=['setuptools',
'zope.interface', 'zope.interface',
...@@ -78,7 +79,6 @@ setup(name='zope.container', ...@@ -78,7 +79,6 @@ setup(name='zope.container',
'zope.traversing', 'zope.traversing',
'zope.publisher', 'zope.publisher',
'zope.broken', 'zope.broken',
'zope.app.dependable',
'ZODB3', 'ZODB3',
], ],
include_package_data = True, include_package_data = True,
......
<configure <configure
xmlns="http://namespaces.zope.org/zope" xmlns="http://namespaces.zope.org/zope"
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="zope" i18n_domain="zope"
> >
...@@ -56,6 +57,7 @@ ...@@ -56,6 +57,7 @@
/> />
<subscriber <subscriber
zcml:condition="installed zope.app.dependable"
handler=".dependency.CheckDependency" handler=".dependency.CheckDependency"
for="zope.container.interfaces.IObjectRemovedEvent" for="zope.container.interfaces.IObjectRemovedEvent"
trusted="y" trusted="y"
......
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