[Zope3-checkins] CVS: Zope3/src/zope/app/browser/component - interfacewidget.py:1.25

R. Sean Bowman sean.bowman@acm.org
Thu, 6 Feb 2003 01:50:33 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/component
In directory cvs.zope.org:/tmp/cvs-serv18167/zope/app/browser/component

Modified Files:
	interfacewidget.py 
Log Message:
finished changing service names to use strings defined in
zope/component/servicenames.py, changed the name of
ErrorReportingService to ErrorReports and Resources to ResourceService


=== Zope3/src/zope/app/browser/component/interfacewidget.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/browser/component/interfacewidget.py:1.24	Mon Feb  3 14:00:21 2003
+++ Zope3/src/zope/app/browser/component/interfacewidget.py	Thu Feb  6 01:48:54 2003
@@ -23,6 +23,7 @@
 from zope.app.form.widget import Widget
 from zope.publisher.browser import BrowserView
 from zope.component import getService
+from zope.component.servicenames import Interfaces
 from zope.schema.interfaces import ValidationError
 from zope.component.exceptions import ComponentLookupError
 from xml.sax.saxutils import quoteattr
@@ -70,7 +71,7 @@
         search_string = self.request.form.get(search_name, '')
 
         field = self.context
-        service = getService(field.context, "Interfaces")
+        service = getService(field.context, Interfaces)
         base = field.basetype
         include_none = base is None
         if base == Interface:
@@ -195,7 +196,7 @@
         name_i = name+'.i'
         name_search_i = name+'.search.i'
 
-        service = getService(field.context, "Interfaces")
+        service = getService(field.context, Interfaces)
         base = field.basetype
         include_none = base is None
         if base == Interface:
@@ -364,7 +365,7 @@
 def nameToInterface(context, name):
     if name == 'None':
         return None
-    service = getService(context, "Interfaces")
+    service = getService(context, Interfaces)
     return service.getInterface(name)
 
 def interfaceToName(interface):