[Zope-Checkins] CVS: Zope3/lib/python/Zope/I18n - TranslationService.py:1.1.2.3
Jim Fulton
jim@zope.com
Sat, 8 Jun 2002 13:14:56 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/I18n
In directory cvs.zope.org:/tmp/cvs-serv32437/lib/python/Zope/I18n
Modified Files:
Tag: Zope-3x-branch
TranslationService.py
Log Message:
Refactored isAddable method out of IContainer into a separate, more
specilized interface. This part of the framework needs more thought,
but, in any case, containers that don't need to restrict their content
(or that restrict it in other ways) shouldn't be burdened by this part
of the interface.
I also rewrote IContainer doc strings to conform to coding style.
=== Zope3/lib/python/Zope/I18n/TranslationService.py 1.1.2.2 => 1.1.2.3 ===
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 Negotiator import negotiator
from IMessageCatalog import IMessageCatalog
@@ -36,7 +37,8 @@
_get_var_regex = re.compile(r'%(n)s' %({'n': NAME_RE}))
-class ILocalTranslationService(ITranslationService, IContainer):
+class ILocalTranslationService(ITranslationService,
+ IContainer, IHomogenousContainer):
"""TTW manageable translation service"""