[Zope3-checkins] CVS: Zope3/src/zope/i18n - messageid.py:1.7
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Aug 18 16:20:54 EDT 2003
Update of /cvs-repository/Zope3/src/zope/i18n
In directory cvs.zope.org:/tmp/cvs-serv30443/i18n
Modified Files:
messageid.py
Log Message:
Implemented new syntax for assigning "explicit" Message IDs in ZCML.
The Syntax:
<.... attr="[MessageID] Default Text" />
<... attr="[] [Escaped] Default Text" />
While other solutions were proposed, this one was the only one that would
not require a total rethinking/rewrite of the ZCML internals (and we just
has a ZCMLgeddon, so I think it will not happen soon again. ;-)
=== Zope3/src/zope/i18n/messageid.py 1.6 => 1.7 ===
--- Zope3/src/zope/i18n/messageid.py:1.6 Tue Aug 12 17:49:46 2003
+++ Zope3/src/zope/i18n/messageid.py Mon Aug 18 15:20:20 2003
@@ -61,5 +61,5 @@
def __init__(self, domain):
self._domain = domain
- def __call__(self, ustr):
- return MessageID(ustr, domain=self._domain)
+ def __call__(self, ustr, default=None):
+ return MessageID(ustr, self._domain, default)
More information about the Zope3-Checkins
mailing list