[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/ftests - test_contents.py:1.8

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


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

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


=== Zope3/src/zope/app/browser/container/ftests/test_contents.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/browser/container/ftests/test_contents.py:1.7	Mon Mar  1 10:02:45 2004
+++ Zope3/src/zope/app/browser/container/ftests/test_contents.py	Sat Mar  6 11:50:14 2004
@@ -137,7 +137,7 @@
         root['foo'] = File()
         get_transaction().commit()
         self.assert_('foo' in root)
-        dc = zapi.getAdapter(root['foo'], IZopeDublinCore)
+        dc = IZopeDublinCore(root['foo'])
         self.assert_(dc.title == '')
 
         response = self.publish('/@@contents.html',
@@ -161,7 +161,7 @@
 
         root._p_jar.sync()
         self.assert_('foo' in root)
-        dc = zapi.getAdapter(root['foo'], IZopeDublinCore)
+        dc = IZopeDublinCore(root['foo'])
         self.assert_(dc.title == 'test title')
 
 




More information about the Zope3-Checkins mailing list