[Zope-Checkins] SVN: Products.Five/branches/philikon-local-components/event.zcml make use of in-python adapter() declaration

Philipp von Weitershausen philikon at philikon.de
Wed Apr 19 14:05:47 EDT 2006


Log message for revision 67163:
  make use of in-python adapter() declaration
  

Changed:
  U   Products.Five/branches/philikon-local-components/event.zcml

-=-
Modified: Products.Five/branches/philikon-local-components/event.zcml
===================================================================
--- Products.Five/branches/philikon-local-components/event.zcml	2006-04-19 18:04:21 UTC (rev 67162)
+++ Products.Five/branches/philikon-local-components/event.zcml	2006-04-19 18:05:47 UTC (rev 67163)
@@ -5,35 +5,15 @@
 
   <!-- Adapter giving sublocations for ObjectManagers, used
        by dispatchToSublocations -->
+  <adapter factory="OFS.subscribers.ObjectManagerSublocations" />
 
-  <adapter
-      for="OFS.interfaces.IObjectManager"
-      provides="zope.location.interfaces.ISublocations"
-      factory="OFS.subscribers.ObjectManagerSublocations"
-      />
-
   <!-- dispatch IObjectWillBeMovedEvent with "bottom-up" semantics -->
+  <subscriber handler="OFS.subscribers.dispatchObjectWillBeMovedEvent" />
 
-  <subscriber
-      for="OFS.interfaces.IItem
-           OFS.interfaces.IObjectWillBeMovedEvent"
-      handler="OFS.subscribers.dispatchObjectWillBeMovedEvent"
-      />
-
   <!-- dispatch IObjectMovedEvent with "top-down" semantics -->
+  <subscriber handler="OFS.subscribers.dispatchObjectMovedEvent" />
 
-  <subscriber
-      for="OFS.interfaces.IItem
-           zope.app.container.interfaces.IObjectMovedEvent"
-      handler="OFS.subscribers.dispatchObjectMovedEvent"
-      />
-
   <!-- dispatch IObjectClonedEvent with "top-down" semantics -->
+  <subscriber handler="OFS.subscribers.dispatchObjectClonedEvent" />
 
-  <subscriber
-      for="OFS.interfaces.IItem
-           OFS.interfaces.IObjectClonedEvent"
-      handler="OFS.subscribers.dispatchObjectClonedEvent"
-      />
-
 </configure>



More information about the Zope-Checkins mailing list