[Zope3-checkins] CVS: Zope3/src/zope/i18n/tests -
test_messageid.py:1.4
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Aug 18 16:20:27 EDT 2003
Update of /cvs-repository/Zope3/src/zope/i18n/tests
In directory cvs.zope.org:/tmp/cvs-serv30443/i18n/tests
Modified Files:
test_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/tests/test_messageid.py 1.3 => 1.4 ===
--- Zope3/src/zope/i18n/tests/test_messageid.py:1.3 Tue Apr 15 17:18:12 2003
+++ Zope3/src/zope/i18n/tests/test_messageid.py Mon Aug 18 15:20:23 2003
@@ -31,6 +31,10 @@
eq(id.default, u'this is a test')
id.default = u'blah'
eq(id.default, u'blah')
+ id = fact(u'test-id', 'default test')
+ eq(id, u'test-id')
+ eq(id.default, u'default test')
+ eq(id.domain, 'test')
def test_suite():
More information about the Zope3-Checkins
mailing list