[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/module/__init__.py
remove zapi dep
Bernd Dorn
bernd.dorn at lovelysystems.com
Sun Mar 25 08:07:36 EDT 2007
Log message for revision 73602:
remove zapi dep
Changed:
U Zope3/trunk/src/zope/app/module/__init__.py
-=-
Modified: Zope3/trunk/src/zope/app/module/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/module/__init__.py 2007-03-25 12:06:10 UTC (rev 73601)
+++ Zope3/trunk/src/zope/app/module/__init__.py 2007-03-25 12:07:35 UTC (rev 73602)
@@ -21,7 +21,7 @@
import zodbcode.module
from zope.interface import implements
-from zope.app import zapi
+import zope.component
from zope.app.module.interfaces import IModuleManager
@@ -35,13 +35,14 @@
def findModule(self, name):
"""See zodbcode.interfaces.IPersistentModuleImportRegistry"""
- manager = zapi.queryUtility(IModuleManager, name)
+ manager = zope.component.queryUtility(IModuleManager, name=name)
return manager and manager.getModule() or manager
def modules(self):
"""See zodbcode.interfaces.IPersistentModuleImportRegistry"""
return [name
- for name, modulemgr in zapi.getUtilitiesFor(IModuleManager)]
+ for name,
+ modulemgr in zope.component.getUtilitiesFor(IModuleManager)]
# Make Zope Module Registry a singelton
ZopeModuleRegistry = ZopeModuleRegistry()
More information about the Zope3-Checkins
mailing list