[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser - configure.zcml:1.12 packages_contents.pt:1.2

Jim Fulton jim@zope.com
Mon, 7 Oct 2002 11:44:48 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv26843/Services/ServiceManager/Views/Browser

Modified Files:
	configure.zcml packages_contents.pt 
Log Message:
Reworked the service managers packages contents view to reflect recent
changes in the way contents are handled.  The contents view now uses a
macro provided by the base contents component. Also added a necessary
macro to the base contents view.


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/configure.zcml 1.11 => 1.12 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/configure.zcml:1.11	Thu Oct  3 09:45:37 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/configure.zcml	Mon Oct  7 11:44:44 2002
@@ -30,14 +30,14 @@
   </menuItems>
 
 
-  <defaultView for=".IPackages." name="index.html" />
+  <defaultView for=".IPackages." name="contents.html" />
 
   <view
       for=".IPackages."
       permission="Zope.ManageServices" 
       factory=".Views.Browser.PackagesContents.">
 
-    <page name="index.html"
+    <page name="contents.html"
                   attribute="index"
                   />
     <page name="addPackage.html"


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/packages_contents.pt 1.1 => 1.2 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/packages_contents.pt:1.1	Thu Jul 11 14:21:32 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/packages_contents.pt	Mon Oct  7 11:44:44 2002
@@ -6,50 +6,14 @@
 <body>
 <div metal:fill-slot="body">
 
-<form action="." method="get">
-  <table class="ContentListing">
-  
-    <caption>Package Contents</caption>
-  
-    <tbody>
-  
-      <tr>
-	<td class="ContentIcon"><br /> </td>
-	<th class="ContentTitle">Title</th>
-      </tr>
-      <tr tal:repeat="info view/listContentInfo">
-  
-	<td class="ContentSelect">
-	  <input type="checkbox" name="ids:list" value="id"
-		 tal:attributes="value info/id" />
-	</td>
-  
-	<td class="ContentIcon" tal:content="structure info/icon|default">
-	</td>
-  
-	<td class="ContentTitle">
-	  <a href="subfolder_id"
-	     tal:attributes="href string:${info/url}"
-	     tal:content="info/title"
-	  >Folder Title or ID here</a>
-	</td>
-  
-      </tr>
-  
-      <tr tal:condition="nothing">
-  
-	<td class="ContentIcon">
-	  <img alt="Document" src="../../ZMI/www/document_icon.gif" />
-	</td>
-  
-	<td class="ContentTitle">
-	   <a href="document_id">Document Title or ID here</a>
-	</td>
-  
-      </tr>
-    </tbody>
-  
-  </table>
+<form action="." method="get" 
+      tal:define="container_contents view/listContentInfo"
+>
+
+  <p>Package Contents</p>
+
+  <div metal:use-macro="view/contentsMacros/macros/contents_table" />
+
   <br />
     <input type="text" name="name" />
     <input type="submit" name="@@addPackage.html:method" value="Add"