[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/component/interface.py Allow the `provideInterface()` handler to set the info about the directive.

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


Log message for revision 27583:
  
  Allow the `provideInterface()` handler to set the info about the directive.
  
  


Changed:
  U   Zope3/trunk/src/zope/app/component/interface.py


-=-
Modified: Zope3/trunk/src/zope/app/component/interface.py
===================================================================
--- Zope3/trunk/src/zope/app/component/interface.py	2004-09-17 16:16:02 UTC (rev 27582)
+++ Zope3/trunk/src/zope/app/component/interface.py	2004-09-17 16:16:04 UTC (rev 27583)
@@ -23,7 +23,7 @@
 from types import ClassType
 from zope.app import zapi
 
-def provideInterface(id, interface, iface_type=None):
+def provideInterface(id, interface, iface_type=None, info=''):
     """register Interface with utility service
 
     >>> from zope.app.tests.placelesssetup import setUp, tearDown
@@ -80,7 +80,7 @@
         iface_type = IInterface
         
     utilityService = zapi.getGlobalService(zapi.servicenames.Utilities)
-    utilityService.provideUtility(iface_type, interface, name=id)
+    utilityService.provideUtility(iface_type, interface, id, info)
 
 
 



More information about the Zope3-Checkins mailing list