[Zope3-checkins] CVS: Zope3/src/zope/tal - interfaces.py:1.4
Barry Warsaw
barry@zope.com
Tue, 15 Apr 2003 17:25:21 -0400
Update of /cvs-repository/Zope3/src/zope/tal
In directory cvs.zope.org:/tmp/cvs-serv27335/src/zope/tal
Modified Files:
interfaces.py
Log Message:
ITALESEngine.translate(): Set mapping default value to None. When
msgid is a MessageID, the mapping tags along with the object so it
needn't be specified.
Ideally, I'd like to change the signature of this method so that
msgid comes first and domain defaults to None. The domain tags along
with MessageIDs too, so they needn't be always specified.
=== Zope3/src/zope/tal/interfaces.py 1.3 => 1.4 ===
--- Zope3/src/zope/tal/interfaces.py:1.3 Mon Apr 7 14:50:12 2003
+++ Zope3/src/zope/tal/interfaces.py Tue Apr 15 17:25:21 2003
@@ -126,7 +126,9 @@
"""
"""
- def translate(domain, msgid, mapping, default=None):
+ # XXX msgid should come first, with domain defaulting to None. When msgid
+ # is a MessageID, domain tags along and needn't be specified.
+ def translate(domain, msgid, mapping=None, default=None):
"""
See ITranslationService.translate()
"""