[Zope3-checkins] SVN: Zope3/trunk/src/zope/component/utility.py Allow utilities to pass an optional `info` argument that gives some

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Sep 17 12:16:50 EDT 2004


Log message for revision 27603:
  
  Allow utilities to pass an optional `info` argument that gives some
  registration documentation. The adapter service already supported this
  argument. It is being used in the registration objects for documentation.
  
  


Changed:
  U   Zope3/trunk/src/zope/component/utility.py


-=-
Modified: Zope3/trunk/src/zope/component/utility.py
===================================================================
--- Zope3/trunk/src/zope/component/utility.py	2004-09-17 16:16:48 UTC (rev 27602)
+++ Zope3/trunk/src/zope/component/utility.py	2004-09-17 16:16:50 UTC (rev 27603)
@@ -23,7 +23,7 @@
 
 class IGlobalUtilityService(IUtilityService, IRegistry):
 
-    def provideUtility(providedInterface, component, name=''):
+    def provideUtility(providedInterface, component, name='', info=''):
         """Provide a utility
 
         A utility is a component that provides an interface.



More information about the Zope3-Checkins mailing list