Commit b4070513 authored by Hanno Schlichting's avatar Hanno Schlichting

Moved ``Products/Five/event.zcml`` into the OFS package.

parent 12c4946d
...@@ -11,6 +11,8 @@ Trunk (unreleased) ...@@ -11,6 +11,8 @@ Trunk (unreleased)
Restructuring Restructuring
+++++++++++++ +++++++++++++
- Moved ``Products/Five/event.zcml`` into the OFS package.
- Removed no longer maintained ``configure, make, make install`` related - Removed no longer maintained ``configure, make, make install`` related
installation files. Zope2 can only be installed via its setup.py. installation files. Zope2 can only be installed via its setup.py.
......
<configure xmlns="http://namespaces.zope.org/zope">
<include file="event.zcml"/>
</configure>
<configure xmlns="http://namespaces.zope.org/zope">
<!-- Enable object event dispatcher -->
<include package="zope.component" />
<!-- Adapter giving sublocations for ObjectManagers, used
by dispatchToSublocations -->
<adapter factory=".subscribers.ObjectManagerSublocations" />
<!-- dispatch IObjectWillBeMovedEvent with "bottom-up" semantics -->
<subscriber handler=".subscribers.dispatchObjectWillBeMovedEvent" />
<!-- dispatch IObjectMovedEvent with "top-down" semantics -->
<subscriber handler=".subscribers.dispatchObjectMovedEvent" />
<!-- dispatch IObjectClonedEvent with "top-down" semantics -->
<subscriber handler=".subscribers.dispatchObjectClonedEvent" />
<!-- dispatch IObjectCopiedEvent with "top-down" semantics -->
<subscriber handler=".subscribers.dispatchObjectCopiedEvent" />
</configure>
...@@ -74,7 +74,8 @@ class ObjectManagerTests(PlacelessSetup, unittest.TestCase): ...@@ -74,7 +74,8 @@ class ObjectManagerTests(PlacelessSetup, unittest.TestCase):
super(ObjectManagerTests, self).setUp() super(ObjectManagerTests, self).setUp()
self.saved_cfg_debug_mode = getConfiguration().debug_mode self.saved_cfg_debug_mode = getConfiguration().debug_mode
zcml.load_config('meta.zcml', Products.Five) zcml.load_config('meta.zcml', Products.Five)
zcml.load_config('event.zcml', Products.Five) import OFS
zcml.load_config('event.zcml', OFS)
zcml.load_config('deprecated.zcml', Products.Five) zcml.load_config('deprecated.zcml', Products.Five)
setDeprecatedManageAddDelete(ItemForDeletion) setDeprecatedManageAddDelete(ItemForDeletion)
......
...@@ -4,10 +4,12 @@ ...@@ -4,10 +4,12 @@
<include file="meta.zcml" /> <include file="meta.zcml" />
<include file="permissions.zcml" /> <include file="permissions.zcml" />
<include file="i18n.zcml" /> <include file="i18n.zcml" />
<include file="event.zcml"/>
<include file="deprecated.zcml"/> <include file="deprecated.zcml"/>
<include file="publisher.zcml"/> <include file="publisher.zcml"/>
<include file="traversing.zcml"/> <include file="traversing.zcml"/>
<include package="OFS "/>
<include package=".component" /> <include package=".component" />
<include package=".browser" /> <include package=".browser" />
<include package=".form" /> <include package=".form" />
......
<configure xmlns="http://namespaces.zope.org/zope"> <configure xmlns="http://namespaces.zope.org/zope">
<!-- Enable object event dispatcher --> <include package="OFS" file="event.zcml"/>
<include package="zope.component" />
<!-- Adapter giving sublocations for ObjectManagers, used
by dispatchToSublocations -->
<adapter factory="OFS.subscribers.ObjectManagerSublocations" />
<!-- dispatch IObjectWillBeMovedEvent with "bottom-up" semantics -->
<subscriber handler="OFS.subscribers.dispatchObjectWillBeMovedEvent" />
<!-- dispatch IObjectMovedEvent with "top-down" semantics -->
<subscriber handler="OFS.subscribers.dispatchObjectMovedEvent" />
<!-- dispatch IObjectClonedEvent with "top-down" semantics -->
<subscriber handler="OFS.subscribers.dispatchObjectClonedEvent" />
<!-- dispatch IObjectCopiedEvent with "top-down" semantics -->
<subscriber handler="OFS.subscribers.dispatchObjectCopiedEvent" />
</configure> </configure>
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