[Zope3-checkins] CVS: Zope3/src/zope/app/externaleditor/browser -
__init__.py:1.2
Jim Fulton
jim at zope.com
Sat Mar 6 11:50:54 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/externaleditor/browser
In directory cvs.zope.org:/tmp/cvs-serv11249/src/zope/app/externaleditor/browser
Modified Files:
__init__.py
Log Message:
Converted most getAdapter calls to use interface calls instead.
=== Zope3/src/zope/app/externaleditor/browser/__init__.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/externaleditor/browser/__init__.py:1.1 Fri Feb 27 09:23:17 2004
+++ Zope3/src/zope/app/externaleditor/browser/__init__.py Sat Mar 6 11:50:23 2004
@@ -29,7 +29,7 @@
r = []
url = zapi.getView(context, 'absolute_url', request)()
r.append('url:%s' % url)
- adapted = zapi.getAdapter(context, IReadFile)
+ adapted = IReadFile(context)
if hasattr(adapted, 'contentType'):
# XXX Although IReadFile declares contentType,
More information about the Zope3-Checkins
mailing list