[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container -
contents.py:1.37
Jim Fulton
jim at zope.com
Sat Mar 6 12:49:29 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv21993/src/zope/app/browser/container
Modified Files:
contents.py
Log Message:
Changed most calls to queryAdapter to use interface calls instead.
=== Zope3/src/zope/app/browser/container/contents.py 1.36 => 1.37 ===
--- Zope3/src/zope/app/browser/container/contents.py:1.36 Sat Mar 6 11:50:12 2004
+++ Zope3/src/zope/app/browser/container/contents.py Sat Mar 6 12:48:45 2004
@@ -155,7 +155,7 @@
else:
info['icon'] = zmi_icon()
- dc = zapi.queryAdapter(obj, IZopeDublinCore)
+ dc = IZopeDublinCore(obj, None)
if dc is not None:
info['retitleable'] = id != retitle_id
info['plaintitle'] = 0
@@ -179,7 +179,7 @@
info['plaintitle'] = 1
- sized_adapter = zapi.queryAdapter(obj, ISized)
+ sized_adapter = ISized(obj, None)
if sized_adapter is not None:
info['size'] = sized_adapter
return info
More information about the Zope3-Checkins
mailing list