[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser - browser.zcml:1.1.4.2.2.6 services_bindings.pt:1.1.4.1.2.1

Jim Fulton jim@zope.com
Wed, 5 Jun 2002 11:18:30 -0400


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

Modified Files:
      Tag: Zope3InWonderland-branch
	browser.zcml services_bindings.pt 
Log Message:
Fixed up zcml and pt to reflect new way of defining views.
This changed lots of urls. Also made sure that relative urls
starting with names with :: had a preceeding "./".  :-/

Had to modify some py files to accomidate these changes, including
createing some interfaces to use in security assertions.



=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/browser.zcml 1.1.4.2.2.5 => 1.1.4.2.2.6 ===
 >
 
-  <content class=".Contents.">
-    <security:require
-        permission="Zope.ManageServices" 
-        attributes="index listContentInfo remove removeObjects
-                    confirmRemoved" />
-  </content>
-
   <browser:defaultView 
-     name="contents"
      for="Zope.App.OFS.Services.ServiceManager.IServiceManager."
-     factory=".Contents." />
+     name="index.html"
+     />
 
+  <browser:view 
+     for="Zope.App.OFS.Services.ServiceManager.IServiceManager."
+     permission="Zope.ManageServices" 
+     factory=".Contents."
+     >
+
+    <browser:page name="index.html"
+                  attribute="index"
+                  />
+    <browser:page name="addServiceManager.html"
+                  attribute="addServiceManager"
+                  />
 
-  <content class=".Adder.">
-    <security:require
-        permission="Zope.ManageServices" 
-        attributes="index confirmed action listAddableInfo"/>
-  </content>
+  </browser:view> 
 
   <browser:view 
-     name="adder"
+     permission="Zope.ManageServices" 
      for="Zope.App.OFS.Services.ServiceManager.IServiceManager."
-     factory=".Adder." />
+     factory=".Adder.">
 
-  <content class=".Bindings.">
-    <security:require
-        permission="Zope.ManageServices" 
-        attributes="index action getServicesTable" />
-  </content>
+    <browser:page name="addForm.html"
+                  attribute="index"
+                  />
+    <browser:page name="add.html"
+                  attribute="action"
+                  />
+
+  </browser:view> 
   
   <browser:view 
-     name="bindings"
+     permission="Zope.ManageServices" 
      for="Zope.App.OFS.Services.ServiceManager.IServiceManager."
-     factory=".Bindings." />
-
+     factory=".Bindings." >
 
-  <zmi:tabs for="Zope.App.OFS.Services.ServiceManager.ServiceManager.IServiceManager.">
-    <zmi:tab label="Contents" action="view::contents"/>
-    <zmi:tab label="Bindings" action="view::bindings"/>
+    <browser:page name="bindings.html"
+                  attribute="index"
+                  />
+    <browser:page name="changeBindings.html"
+                  attribute="action"
+                  />
+
+  </browser:view> 
+
+
+  <zmi:tabs 
+    for="Zope.App.OFS.Services.ServiceManager.ServiceManager.IServiceManager.">
+    <zmi:tab label="Contents" action="./view::index.html"/>
+    <zmi:tab label="Bindings" action="./view::bindings.html"/>
   </zmi:tabs>
 
 </zopeConfigure>


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/services_bindings.pt 1.1.4.1 => 1.1.4.1.2.1 ===
   </head>
   <body metal:fill-slot="body" >
-    <form action="action" method="post">
+    <form action="changeBindings.html" method="post">
     <table>
     <tr><th>Name</th><th>boundService</th></tr>
      <tr tal:repeat="service view/getServicesTable">