[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service_index.pt:1.1 configure.zcml:1.19

Jim Fulton jim@zope.com
Fri, 7 Feb 2003 10:49:10 -0500


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

Modified Files:
	configure.zcml 
Added Files:
	service_index.pt 
Log Message:
Cleaned up the layout of the browser configuration a bit.
Moved some container traversal browser configs from zope.app.container
to zope.app.browser.



=== Added File Zope3/src/zope/app/browser/services/service_index.pt ===
<html metal:use-macro="views/standard_macros/page">
<body>
<div metal:fill-slot="body">

<a href="Packages">Packages</a>

</div>
</body>
</html>


=== Zope3/src/zope/app/browser/services/configure.zcml 1.18 => 1.19 ===
--- Zope3/src/zope/app/browser/services/configure.zcml:1.18	Thu Feb  6 10:35:02 2003
+++ Zope3/src/zope/app/browser/services/configure.zcml	Fri Feb  7 10:48:39 2003
@@ -444,16 +444,16 @@
 
 <!-- ZPT Templates -->
 
-<browser:page
+<browser:view
     for="zope.app.interfaces.services.interfaces.IZPTTemplate"
     name="index.html"
-    class="zope.app.browser.services.zpt.Source"
+    class=".zpt.Source"
     permission="zope.ManageServices"
     />
 
 <browser:editform
     schema="zope.app.interfaces.services.interfaces.IZPTTemplate"
-    name="index.html"
+    name="edit.html"
     menu="zmi_views"
     label="ZPT Template"
     permission="zope.ManageServices"
@@ -481,7 +481,7 @@
     >
 
   <browser:menuItem title="Manage Local Services"
-            action="++etc++Services/index.html"
+            action="++etc++Services/@@services.html"
             filter="context/hasServiceManager"
             />
 
@@ -492,15 +492,6 @@
 
 </browser:menuItems>
 
-<browser:page
-    name="index.html" 
-    menu="zmi_views" title="Control"
-    permission="zope.ManageServices" 
-    for="zope.app.interfaces.services.hub.IObjectHub"
-    class="zope.app.browser.services.hub.Control"
-    attribute="index" 
-    />
-
 <!-- ConnectionService -->
 
   <browser:menuItems
@@ -550,13 +541,20 @@
 
   <browser:page
      for="zope.app.interfaces.services.service.IServiceManager"
-     name="index.html"
+     name="services.html"
      menu="zmi_views" title="Services"
      template="services.pt"
      class=".namecomponentconfigurableview.NameComponentConfigurableView"
      permission="zope.ManageServices"
      />
 
+  <browser:page
+     for="zope.app.interfaces.services.service.IServiceManager"
+     name="index.html"
+     template="service_index.pt"
+     permission="zope.ManageServices"
+     />
+
   <browser:icon
       name="zmi_icon"
       for="zope.app.interfaces.services.service.IServiceManager" 
@@ -581,11 +579,6 @@
 
 <!-- Packages -->
 
-  <browser:defaultView
-     for="zope.app.interfaces.services.package.IPackages"
-     name="contents.html" 
-     />
-
   <browser:pages
       for="zope.app.interfaces.services.package.IPackages"
       permission="zope.ManageServices"
@@ -605,7 +598,7 @@
   <browser:menuItem
       menu="zmi_views" 
       for="zope.app.interfaces.services.package.IPackages"
-      title="Services"
+      title="Packages"
       action="@@contents.html"
       />
 
@@ -617,13 +610,26 @@
       filter="nothing"
       />
 
+  <browser:pages
+      for="zope.app.interfaces.services.package.IPackages"
+      permission="zope.ManageServices" 
+      class="zope.app.browser.container.contents.JustContents">
+
+    <browser:page name="index.html" attribute="index" />
+
+  </browser:pages>
+
 
 <!-- Package -->
 
-  <browser:defaultView
-     for="zope.app.interfaces.services.package.IPackage"
-     name="contents.html" 
-     />
+  <browser:pages
+      for="zope.app.interfaces.services.package.IPackage"
+      permission="zope.ManageServices" 
+      class="zope.app.browser.container.contents.JustContents">
+
+    <browser:page name="index.html" attribute="index" />
+
+  </browser:pages>
 
   <browser:pages
      for="zope.app.interfaces.services.package.IPackage"
@@ -737,9 +743,14 @@
 
 <!-- View Package -->
 
-  <browser:defaultView 
-     for="zope.app.interfaces.services.service.IViewPackage"
-     name="contents.html" />
+  <browser:pages
+      for="zope.app.interfaces.services.service.IViewPackage"
+      permission="zope.ManageServices" 
+      class="zope.app.browser.container.contents.JustContents">
+
+    <browser:page name="index.html" attribute="index" />
+
+  </browser:pages>
 
   <browser:pages
       for="zope.app.interfaces.services.service.IViewPackage"
@@ -805,6 +816,15 @@
 
 
 <!-- Object Hub -->
+
+<browser:page
+    name="index.html" 
+    menu="zmi_views" title="Control"
+    permission="zope.ManageServices" 
+    for="zope.app.interfaces.services.hub.IObjectHub"
+    class="zope.app.browser.services.hub.Control"
+    attribute="index" 
+    />
 
   <browser:menuItem
       menu="add_component"