[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/service -
__init__.py:1.23
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:46 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/services/service
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/browser/services/service
Modified Files:
__init__.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/browser/services/service/__init__.py 1.22 => 1.23 ===
--- Zope3/src/zope/app/browser/services/service/__init__.py:1.22 Fri Mar 5 17:08:56 2004
+++ Zope3/src/zope/app/browser/services/service/__init__.py Sat Mar 6 11:50:15 2004
@@ -124,7 +124,7 @@
path = zapi.name(content)
rm = content.__parent__.getRegistrationManager()
- chooser = zapi.getAdapter(rm, INameChooser)
+ chooser = INameChooser(rm)
# register an activated service registration
for type_name in implements:
@@ -183,7 +183,7 @@
def action(self, name=[], active=[]):
path = zapi.name(self.context)
rm = self.context.__parent__.getRegistrationManager()
- chooser = zapi.getAdapter(rm, INameChooser)
+ chooser = INameChooser(rm)
for nm in name:
sc = ServiceRegistration(nm, path, self.context)
More information about the Zope3-Checkins
mailing list