[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/classmodule/tests.py Updated use of zapi.getUtility.

Garrett Smith garrett at mojave-corp.com
Tue Jun 1 11:06:07 EDT 2004


Log message for revision 25151:
Updated use of zapi.getUtility.


-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/tests.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/tests.py	2004-06-01 14:46:11 UTC (rev 25150)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/tests.py	2004-06-01 15:06:03 UTC (rev 25151)
@@ -67,7 +67,7 @@
 
 
 def getFunctionDetailsView():
-    cm = zapi.getUtility(None, IDocumentationModule, 'Class')
+    cm = zapi.getUtility(IDocumentationModule, 'Class')
     view = FunctionDetails()
     view.context = zapi.traverse(cm, 'zope/app/apidoc/classmodule/tests/foo')
     view.request = TestRequest()
@@ -75,7 +75,7 @@
 
 
 def getClassDetailsView():
-    cm = zapi.getUtility(None, IDocumentationModule, 'Class')
+    cm = zapi.getUtility(IDocumentationModule, 'Class')
     view = ClassDetails()
     view.context = zapi.traverse(cm, 'zope/app/apidoc/classmodule/ClassModule')
     view.request = TestRequest()
@@ -83,7 +83,7 @@
 
 
 def getModuleDetailsView():
-    cm = zapi.getUtility(None, IDocumentationModule, 'Class')
+    cm = zapi.getUtility(IDocumentationModule, 'Class')
     view = ModuleDetails()
     view.context = zapi.traverse(cm, 'zope/app/apidoc/classmodule')
     view.request = TestRequest()




More information about the Zope3-Checkins mailing list