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

K.Narasimha Murthy nmurthy@zeomega.com
Wed, 23 Oct 2002 02:25:20 -0400


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

Modified Files:
      Tag: Zope3-Bangalore-TTW-Branch
	AddServiceDirective.py 
Log Message:
aded RegistrationState.py for status


=== Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/AddServiceDirective.py 1.1 => 1.1.6.1 ===
--- Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/AddServiceDirective.py:1.1	Thu Jul 11 14:21:32 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/ServiceManager/Views/Browser/AddServiceDirective.py	Wed Oct 23 02:25:20 2002
@@ -23,7 +23,7 @@
 from Zope.Publisher.Browser.BrowserView import BrowserView
 from Zope.App.OFS.Services.ServiceManager.ServiceDirective \
      import ServiceDirective
-
+import pdb
 class AddServiceDirective(BrowserView):
 
 
@@ -41,7 +41,8 @@
                 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)
         service = getServiceManager(self.context.context)
@@ -49,6 +50,7 @@
             if status == 'register':
                 service.addService(sd)
             else:
-                service.bindService(sd)
+                service.bindService(sd)
+             
         self.request.response.redirect(self.context.nextURL())