[Zope3-checkins] CVS: Zope3/src/zope/app/browser/index/text - control.py:1.5

R. Sean Bowman sean.bowman@acm.org
Wed, 5 Feb 2003 23:31:15 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/index/text
In directory cvs.zope.org:/tmp/cvs-serv8752/zope/app/browser/index/text

Modified Files:
	control.py 
Log Message:
changed service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports


=== Zope3/src/zope/app/browser/index/text/control.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/index/text/control.py:1.4	Mon Dec 30 09:02:53 2002
+++ Zope3/src/zope/app/browser/index/text/control.py	Wed Feb  5 23:30:41 2003
@@ -21,6 +21,7 @@
 from __future__ import generators
 
 from zope.component import getService, queryAdapter
+from zope.component.servicenames import HubIds
 from zope.exceptions import NotFoundError
 from zope.publisher.interfaces.browser import IBrowserView
 from zope.publisher.browser import BrowserView
@@ -38,7 +39,7 @@
 
     def __init__(self, context, request):
         super(ControlView, self).__init__(context, request)
-        self.hub = getService(context, "HubIds")
+        self.hub = getService(context, HubIds)
 
     def nextBatch(self):
         start = int(self.request.get('start', self.default_start))