[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/TranslationService - TranslationService.py:1.4

Gary Poster gary@zope.com
Wed, 18 Dec 2002 14:15:31 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/TranslationService
In directory cvs.zope.org:/tmp/cvs-serv17371

Modified Files:
	TranslationService.py 
Log Message:
removing IHomogenousContainer references



=== Zope3/lib/python/Zope/App/OFS/Services/TranslationService/TranslationService.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/OFS/Services/TranslationService/TranslationService.py:1.3	Thu Aug  1 14:42:13 2002
+++ Zope3/lib/python/Zope/App/OFS/Services/TranslationService/TranslationService.py	Wed Dec 18 14:15:31 2002
@@ -26,7 +26,6 @@
 
 from Zope.App.OFS.Container.BTreeContainer import BTreeContainer
 from Zope.App.OFS.Container.IContainer import IContainer
-from Zope.App.OFS.Container.IContainer import IHomogenousContainer
 
 from Zope.I18n.Negotiator import negotiator
 from Zope.I18n.Domain import Domain
@@ -35,8 +34,7 @@
 from Zope.I18n.SimpleTranslationService import SimpleTranslationService
 
 
-class ILocalTranslationService(ITranslationService,
-                               IContainer, IHomogenousContainer):
+class ILocalTranslationService(ITranslationService, IContainer):
     """TTW manageable translation service"""
 
 
@@ -79,14 +77,6 @@
         super(TranslationService, self).__delitem__(name)
         self._unregisterMessageCatalog(object.getLanguage(),
                                        object.getDomain(), name)
-
-    def isAddable(self, interfaces):
-        """See Zope.App.OFS.Container.IContainer.IWriteContainer"""
-        if type(interfaces) != TupleType:
-            interfaces = (interfaces,)
-        if IMessageCatalog in interfaces:
-            return 1
-        return 0
 
     # end Zope.App.OFS.Container.IContainer.IWriteContainer
     ############################################################