[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/utility - configure.zcml:1.6

Guido van Rossum guido@python.org
Tue, 22 Apr 2003 18:18:11 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/services/utility
In directory cvs.zope.org:/tmp/cvs-serv29377/zope/app/browser/services/utility

Modified Files:
	configure.zcml 
Log Message:
New way of configuring db connections.  There's still a few loose
ends, but it doen't break any tests, and it works except for one
detail.  I'll finish this tomorrow or Thursday.


=== Zope3/src/zope/app/browser/services/utility/configure.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/services/utility/configure.zcml:1.5	Tue Apr 22 15:09:16 2003
+++ Zope3/src/zope/app/browser/services/utility/configure.zcml	Tue Apr 22 18:17:38 2003
@@ -1,9 +1,9 @@
 <zopeConfigure xmlns='http://namespaces.zope.org/browser'>
 
-  <!-- Browser directives for the utility service and for individual
-       utility objects -->
+<!-- Browser directives for the utility service -->
 
   <!-- "Add service" menu entry to add a utility service -->
+  <!-- XXX AFAIK the 'action' value is unused, but must be given -->
   <menuItem
       for="zope.app.interfaces.container.IAdding"
       menu="add_service" title="Utility Service"
@@ -11,28 +11,18 @@
       permission="zope.ManageServices"
       />
 
-  <!-- ZMI tab named "Configurations" for utility objects.
-       Given a utility object this lets you view all configurations
-       available for it. -->
-  <page
-      for="zope.app.interfaces.services.utility.ILocalUtility"
-      name="useConfiguration.html"
-      template="useconfiguration.pt"
-      class=".useconfiguration.UseConfiguration"
-      permission="zope.ManageServices"
-      menu="zmi_views" title="Configurations"
-      />
-
   <!-- ZMI tab named "Utilites" for the utility service -->
   <page
       for="zope.app.interfaces.services.utility.ILocalUtilityService"
+      menu="zmi_views" title="Utilities"
       name="utilities.html"
       template="utilities.pt"
       class=".useconfiguration.Utilities"
       permission="zope.ManageServices"
-      menu="zmi_views" title="Utilities"
       />
 
+<!-- Browser directives for individual utility objects -->
+
   <!-- Configuration page for utility objects.  You get here by
        clicking on the (configure) link for a particular utility
        in the "Utilities" tab of the utility service.  It shows
@@ -51,6 +41,18 @@
       permission="zope.ManageServices"
       />
 
+  <!-- ZMI tab named "Configurations" for utility objects.
+       Given a utility object this lets you view all configurations
+       available for it. -->
+  <page
+      for="zope.app.interfaces.services.utility.ILocalUtility"
+      menu="zmi_views" title="Configurations"
+      name="useConfiguration.html"
+      template="useconfiguration.pt"
+      class=".useconfiguration.UseConfiguration"
+      permission="zope.ManageServices"
+      />
+
   <!-- When creating a new utility object, you are taken to this
        form to configure it.  The form lets you choose a name,
        an interface, a permission, and a registration status
@@ -73,10 +75,10 @@
        form, but doesn't let you change the name, interface or path.
        (Thus leaving only permission and registration status.) -->
   <editform
-      name="index.html"
       menu="zmi_views" title="Edit"
-      schema="zope.app.interfaces.services.utility.IUtilityConfiguration"
       label="Utility Configuration"
+      name="index.html"
+      schema="zope.app.interfaces.services.utility.IUtilityConfiguration"
       permission="zope.ManageServices"
       fields="name interface componentPath permission status"
       />