[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/translation/tests - test_translate.py:1.6

Jim Fulton jim at zope.com
Sun Sep 21 13:31:12 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services/translation/tests
In directory cvs.zope.org:/tmp/cvs-serv12246/src/zope/app/browser/services/translation/tests

Modified Files:
	test_translate.py 
Log Message:
Changed to use __setitem__ rather than setObject


=== Zope3/src/zope/app/browser/services/translation/tests/test_translate.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/services/translation/tests/test_translate.py:1.5	Sun Jul 20 08:17:16 2003
+++ Zope3/src/zope/app/browser/services/translation/tests/test_translate.py	Sun Sep 21 13:30:41 2003
@@ -62,8 +62,8 @@
         en_catalog.setMessage('greeting', 'Hello $name, how are you?')
         de_catalog.setMessage('greeting', 'Hallo $name, wie geht es Dir?')
 
-        service.setObject('en-default-1', en_catalog)
-        service.setObject('de-default-1', de_catalog)
+        service['en-default-1'] = en_catalog
+        service['de-default-1'] = de_catalog
 
         self._view = Translate(service, self._getRequest())
 




More information about the Zope3-Checkins mailing list