[Zope-Checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - GlobalUtilityService.py:1.3 IPlacefulComponentArchitecture.py:1.3 IUtilityService.py:1.3

Gary Poster garyposter@earthlink.net
Mon, 1 Jul 2002 10:10:00 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv18922/lib/python/Zope/ComponentArchitecture

Modified Files:
	GlobalUtilityService.py IPlacefulComponentArchitecture.py 
	IUtilityService.py 
Log Message:
fixed a few small typos I noticed regarding the utility service.  added a simple unit test for the utility service.


=== Zope3/lib/python/Zope/ComponentArchitecture/GlobalUtilityService.py 1.2 => 1.3 ===
         self.__utilities.register(providedInterface, component)
 
-    def getUtility(self, interface, default=None):
+    def getUtility(self, interface):
         """See IUtilityService interface"""
         c = self.queryUtility(interface)
         if c is None:


=== Zope3/lib/python/Zope/ComponentArchitecture/IPlacefulComponentArchitecture.py 1.2 => 1.3 ===
         Zope.ComponentArchitecture.ComponentLookupError."""
 
-    def querytUtility(context, interface, default=None):
+    def queryUtility(context, interface, default=None):
         """Look for the utility that provides interface
 
         Returns the nearest utility to the context that implements


=== Zope3/lib/python/Zope/ComponentArchitecture/IUtilityService.py 1.2 => 1.3 ===
         Zope.ComponentArchitecture.ComponentLookupError."""
 
-    def getUtility(interface, default=None):
+    def queryUtility(interface, default=None):
         """Look up a utility that provides an interface.
 
         If one is not found, returns default."""