[Zope3-checkins] CVS: Zope3/src/zope/app/services/translation - translationservice.py:1.13.6.2

Jim Fulton jim at zope.com
Fri Sep 12 15:16:07 EDT 2003


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

Modified Files:
      Tag: parentgeddon-branch
	translationservice.py 
Log Message:
Can't have the tests passing, can we?

=== Zope3/src/zope/app/services/translation/translationservice.py 1.13.6.1 => 1.13.6.2 ===
--- Zope3/src/zope/app/services/translation/translationservice.py:1.13.6.1	Mon Sep  8 14:21:50 2003
+++ Zope3/src/zope/app/services/translation/translationservice.py	Fri Sep 12 15:15:35 2003
@@ -52,7 +52,7 @@
         self._catalogs[(language, domain)].remove(catalog_name)
 
 
-    def setObject(self, name, object):
+    def __setitem__(self, name, object):
         'See IWriteContainer'
         super(TranslationService, self).setObject(name, object)
         self._registerMessageCatalog(object.getLanguage(), object.getDomain(),
@@ -198,7 +198,7 @@
         for domain in domains:
             catalog = zapi.createObject(self, 'Message Catalog',
                                         language, domain)
-            self.setObject('%s-%s' %(domain, language), catalog)
+            self['%s-%s' % (domain, language)] = catalog
 
 
     def addDomain(self, domain):
@@ -210,7 +210,7 @@
         for language in languages:
             catalog = zapi.createObject(self, 'Message Catalog',
                                         language, domain)
-            self.setObject('%s-%s' %(domain, language), catalog)
+            self['%s-%s' % (domain, language)] = catalog
 
 
     def deleteLanguage(self, language):




More information about the Zope3-Checkins mailing list