[Zope-Checkins] CVS: Zope3 - zope.zcml:1.1.2.25

Scott Robertson srobertson@codeit.com
Sat, 9 Feb 2002 12:44:00 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv2438

Modified Files:
      Tag: Zope-3x-branch
	zope.zcml 
Log Message:
Refactored provideClass to use different addable registries.

Fixed the tests that called provied class to pass in the appropriate 
registry as needed (either ContentAddables or ServiceAddables).

Modified zope.zcml to use the new "service" namespace which provides the 
provideClass directive for services.




=== Zope3/zope.zcml 1.1.2.24 => 1.1.2.25 ===
     <directive name="provideClass"
                attributes="name, permission_id, title, description"
-               handler="Zope.App.ZMI.provideClass.provideClassDir" />
+               handler="Zope.App.ZMI.provideClass.ContentClassDir" />
     <directive name="tabs" attributes="for"
                handler="Zope.App.ZMI.TabsDirective.">
         <subdirective name="tab" attributes="label, action, label" />
@@ -19,6 +19,15 @@
     <directive name="icon" attributes="for, file, package, alt"
                handler="Zope.App.ZMI.IconDirective." />
   </directives>
+
+  <!-- Zope.App.ZMI.Service -->
+  <directives namespace="http://namespaces.zope.org/service">
+   	 <directive name="provideClass"
+               attributes="name, permission_id, title, description"
+               handler="Zope.App.ZMI.provideClass.ServiceClassDir" />
+
+  </directives>
+
 
   <!-- Zope.App.Security -->
   <directives namespace="http://namespaces.zope.org/security">