[Checkins] SVN: zc.intid/trunk/src/zc/intid/zope-intid.zcml add additional ZCML to mark the utility with the zope.intid interfaces

Fred Drake fdrake at gmail.com
Fri Nov 20 09:33:11 EST 2009


Log message for revision 105907:
  add additional ZCML to mark the utility with the zope.intid interfaces

Changed:
  A   zc.intid/trunk/src/zc/intid/zope-intid.zcml

-=-
Added: zc.intid/trunk/src/zc/intid/zope-intid.zcml
===================================================================
--- zc.intid/trunk/src/zc/intid/zope-intid.zcml	                        (rev 0)
+++ zc.intid/trunk/src/zc/intid/zope-intid.zcml	2009-11-20 14:33:10 UTC (rev 105907)
@@ -0,0 +1,24 @@
+<configure
+    xmlns="http://namespaces.zope.org/zope"
+    xmlns:zcml="http://namespaces.zope.org/zcml"
+    >
+
+  <!-- Make your zc.intid utilities also provide the parallel
+       zope.intid interfaces.
+       -->
+
+  <!-- For "modern" int id utilities (zope.intid): -->
+  <configure zcml:condition="installed zope.intid">
+    <class class=".utility.IntIds">
+      <interface interface="zope.intid.interfaces.IIntIds"/>
+    </class>
+  </configure>
+
+  <!-- For "classic" int id utilities (zope.app.intid): -->
+  <configure zcml:condition="not:installed zope.intid">
+    <class class=".utility.IntIds">
+      <interface interface="zope.app.intid.interfaces.IIntIds"/>
+    </class>
+  </configure>
+
+</configure>


Property changes on: zc.intid/trunk/src/zc/intid/zope-intid.zcml
___________________________________________________________________
Added: svn:mime-type
   + text/xml
Added: svn:eol-style
   + native



More information about the checkins mailing list