[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser - AddServiceDirective.py:1.1.6.2 configure.zcml:1.12.4.3

Naveen P pnaveen@zeomega.com
Fri, 8 Nov 2002 10:55:24 -0500


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

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	AddServiceDirective.py configure.zcml 
Log Message:
Configuration Manager files added.


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/AddServiceDirective.py 1.1.6.1 => 1.1.6.2 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/AddServiceDirective.py:1.1.6.1	Wed Oct 23 02:25:20 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/AddServiceDirective.py	Fri Nov  8 10:55:23 2002
@@ -41,7 +41,7 @@
                 service.queryComponent(type=type)
                 ]
 
-    def action(self, service_type, component_path, status=""):
+    def action(self, service_type, component_path, status=""):
         
         sd = ServiceDirective(service_type, component_path)
         self.context.add(sd)


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/configure.zcml 1.12.4.2 => 1.12.4.3 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/configure.zcml:1.12.4.2	Thu Oct 31 13:18:20 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/configure.zcml	Fri Nov  8 10:55:23 2002
@@ -29,7 +29,6 @@
               action="Packages/default/@@SelectedManagementView.html"/>
   </menuItems>
 
-
   <defaultView for=".IPackages." name="contents.html" />
 
   <view
@@ -48,13 +47,9 @@
                   />
   </view>
 
-  <menuItems menu="zmi_views" for=".IPackages.">
-    <menuItem title="Contents"
-              action="@@contents.html"/>
-  </menuItems>
-
   <defaultView for=".IPackage." name="contents.html" />
 
+
   <view 
      for=".IPackage."
      permission="Zope.ManageServices"
@@ -66,11 +61,6 @@
    </view>
 
 
-  <menuItems menu="zmi_views" for=".IPackage.">
-    <menuItem title="Contents"
-              action="@@contents.html"/>
-  </menuItems>
-
    <menu id="add_component" 
                  title="Menu of objects to be added to service managers"
                  />
@@ -87,6 +77,22 @@
 
   </view> 
 
+  <view 
+     name="+"
+     permission="Zope.ManageServices" 
+     for=".IConfiguration."
+     factory=".Views.Browser.Adding.ComponentAdding">
+    <page name="index.html"  attribute="index"  />
+    <page name="action.html" attribute="action" />
+  </view> 
+
+  <view 
+     permission="Zope.ManageServices" 
+     for=".IConfiguration."
+     factory=".Views.Browser.EditConfiguration.">
+    <page name="contents.html"  template="Views/Browser/editConfiguration.pt"  />
+  </view> 
+
   <view for="Zope.App.OFS.Container.IAdding."
                 name="ServiceDirective"
                 factory=".Views.Browser.AddServiceDirective."
@@ -111,7 +117,7 @@
      action="Module"  title="Module" />
 
   <view for="Persistence.IPersistentModuleManager."
-        factory=".Views.Browser.EditModule."
+	factory=".Views.Browser.EditModule."
         >
       <page name="edit.html" template="Views/Browser/edit_module.pt" />
   </view>
@@ -122,20 +128,34 @@
 
 <defaultView for=".IServiceDirective." name="edit_service_directive.html" />
  
- <view
+<view
     for=".IServiceDirective."
     factory=".Views.Browser.EditServiceDirective. "
     permission="Zope.ManageServices" >
 
   <page name="edit_service_directive.html"       attribute="edit" />
   <page name="update.html" attribute="editDirective" />
-
 </view>
 
-  <menuItems menu="zmi_views" for=".IServiceDirective.">
-    <menuItem title="Edit" action="edit_service_directive.html" />
-  </menuItems>
-
+  <defaultView 
+     for=".IConfiguration."
+     name="contents.html"
+     />
 
-</zope:zopeConfigure>
+ <view
+    for=".IServiceDirective."
+    name = 'ItemEdit'
+    factory=".Views.Browser.ItemEdit."
+    permission="Zope.ManageServices">
+ </view>
+
+ <menuItem menu="add_component"
+  	for="Zope.App.OFS.Container.IAdding."
+	action="Zope.App.OFS.Services.Configuration" title="Configuration">
+ </menuItem>
+
+ <menuItems menu="zmi_views" for=".IConfiguration.">
+    <menuItem title="Configuration" action="" />
+ </menuItems>
 
+</zope:zopeConfigure>
\ No newline at end of file