[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Container - configure.zcml:1.6
Jim Fulton
jim@zope.com
Mon, 18 Nov 2002 18:51:38 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Container
In directory cvs.zope.org:/tmp/cvs-serv25634
Modified Files:
configure.zcml
Log Message:
Registered an adapter that provides Zope framework services for
containers, including:
- Context wrapping
- Event generation
- Add and delete hooks
Registered a object-removal event subscriber that checks dependencies.
=== Zope3/lib/python/Zope/App/OFS/Container/configure.zcml 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/App/OFS/Container/configure.zcml:1.5 Thu Jul 11 14:21:29 2002
+++ Zope3/lib/python/Zope/App/OFS/Container/configure.zcml Mon Nov 18 18:51:38 2002
@@ -3,6 +3,7 @@
xmlns:browser='http://namespaces.zope.org/browser'
xmlns:xmlrpc='http://namespaces.zope.org/xmlrpc'
xmlns:vfs='http://namespaces.zope.org/vfs'
+ xmlns:event="http://namespaces.zope.org/event"
>
<include package=".Views" />
@@ -41,9 +42,15 @@
provides="Zope.App.Traversing.ITraversable."
for=".IContainer.IReadContainer." />
- <adapter factory=".ContainerTraversable."
- provides="Zope.App.Traversing.ITraversable."
- for=".IContainer.IReadContainer." />
+
+ <adapter factory=".ZopeContainerAdapter."
+ provides=".IZopeContainer."
+ for=".IContainer." />
+
+ <event:subscribe
+ subscriber = ".DependencyChecker.CheckDependency"
+ event_types = "Zope.Event.IObjectEvent.IObjectRemovedEvent"
+ />
<include package=".Find" />