[Zope3-checkins] CVS: Zope3/src/zope/app/apidoc/viewmodule - browser.py:1.3

Suresh Babu Eddala sbabu at zeomega.com
Fri Mar 5 10:46:59 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/apidoc/viewmodule
In directory cvs.zope.org:/tmp/cvs-serv10055/src/zope/app/apidoc/viewmodule

Modified Files:
	browser.py 
Log Message:


removed local interface service stuff, it uses global utility service.




=== Zope3/src/zope/app/apidoc/viewmodule/browser.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/apidoc/viewmodule/browser.py:1.2	Wed Feb 25 17:26:47 2004
+++ Zope3/src/zope/app/apidoc/viewmodule/browser.py	Fri Mar  5 10:46:58 2004
@@ -22,6 +22,8 @@
 from zope.app import zapi
 from zope.app.publisher.browser.icon import IconViewFactory
 from zope.app.apidoc.utilities import getPythonPath, getPermissionIds
+from zope.app.component.interface import searchInterfaceIds
+from zope.app.component.interface import getInterface
 
 __metaclass__ = type
 
@@ -40,8 +42,7 @@
     def getInterfaceIds(self):
         """Get a list of the ids of all interfaces registered with the
         interface service."""
-        service = zapi.getService(self, 'Interfaces')
-        ids = service.searchInterfaceIds()
+        ids = searchInterfaceIds()
         ids.sort()
         return ids
 
@@ -95,9 +96,8 @@
         self.context = context
         self.request = request
 
-        service = zapi.getService(context, 'Interfaces')
-        self.iface = service.getInterface(request['iface'])
-        self.type = service.getInterface(request['type'])
+        self.iface = getInterface(request['iface'])
+        self.type = getInterface(request['type'])
 
         service = zapi.getService(context, 'Presentation')
         self.views = service.getRegisteredMatching(object=self.iface,




More information about the Zope3-Checkins mailing list