[Zope3-checkins] CVS: Zope3/src/zope/app/process - bootstrap.py:1.22

Jim Fulton jim at zope.com
Sat Mar 6 11:50:59 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/process
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/process

Modified Files:
	bootstrap.py 
Log Message:
Converted most getAdapter calls to use interface calls instead.


=== Zope3/src/zope/app/process/bootstrap.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/process/bootstrap.py:1.21	Fri Mar  5 17:09:11 2004
+++ Zope3/src/zope/app/process/bootstrap.py	Sat Mar  6 11:50:27 2004
@@ -224,7 +224,7 @@
     # calls at the end require a fully context-wrapped
     # registration; hence all the traverse() and traverseName() calls.
     package = getServiceManagerDefault(root_folder)
-    chooser = zapi.getAdapter(package, INameChooser)
+    chooser = INameChooser(package)
     service = service_factory()
     service = removeAllProxies(service)
     name = chooser.chooseName(service_type, service)
@@ -260,7 +260,7 @@
     This assumes the root folder already as a Utility Service
     """
     package = getServiceManagerDefault(root_folder)
-    chooser = zapi.getAdapter(package, INameChooser)
+    chooser = INameChooser(package)
     utility = utility_factory()
     name = chooser.chooseName(utility_type, utility)
     package[name] = utility




More information about the Zope3-Checkins mailing list