[Zope3-checkins] SVN: Zope3/trunk/src/zope/i18n/ Converted XXX to
TODO.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Tue Jul 13 12:41:08 EDT 2004
Log message for revision 26461:
Converted XXX to TODO.
Changed:
U Zope3/trunk/src/zope/i18n/format.py
U Zope3/trunk/src/zope/i18n/interfaces/__init__.py
U Zope3/trunk/src/zope/i18n/tests/test_formats.py
-=-
Modified: Zope3/trunk/src/zope/i18n/format.py
===================================================================
--- Zope3/trunk/src/zope/i18n/format.py 2004-07-13 16:40:26 UTC (rev 26460)
+++ Zope3/trunk/src/zope/i18n/format.py 2004-07-13 16:41:08 UTC (rev 26461)
@@ -377,7 +377,7 @@
if bin_pattern[PADDING4] is not None and post_padding > 0:
text += bin_pattern[PADDING4]*post_padding
- # XXX: Need to make sure unicode is everywhere
+ # TODO: Need to make sure unicode is everywhere
return unicode(text)
@@ -479,7 +479,7 @@
It also depends on the locale of course."""
return {
('a', 1): r'(%s|%s)' %(calendar.am, calendar.pm),
- # XXX: works for gregorian only right now
+ # TODO: works for gregorian only right now
('G', 1): r'(%s|%s)' %(calendar.eras[1][1], calendar.eras[2][1]),
('y', 2): r'([0-9]{2})',
('y', 4): r'([0-9]{4})',
@@ -570,7 +570,8 @@
('s', 2): "%.2i" %dt.second,
('S', 1): str(dt.microsecond),
('S', 2): "%.6i" %dt.microsecond,
- # XXX not yet implemented
+ # TODO: Implement the following symbols. This requires the handling of
+ # timezones.
('F', 1): str(2),
('F', 2): "%.2i" %(2),
('W', 1): str(2),
Modified: Zope3/trunk/src/zope/i18n/interfaces/__init__.py
===================================================================
--- Zope3/trunk/src/zope/i18n/interfaces/__init__.py 2004-07-13 16:40:26 UTC (rev 26460)
+++ Zope3/trunk/src/zope/i18n/interfaces/__init__.py 2004-07-13 16:41:08 UTC (rev 26461)
@@ -239,7 +239,7 @@
of user prefered languages
"""
- # XXX I'd like for there to be a symmetric interface method, one in
+ # TODO: I'd like for there to be a symmetric interface method, one in
# which an adapter is gotten for both the first arg and the second
# arg. I.e. getLanguage(obj, env)
# But this isn't a good match for the ITranslationService.translate()
Modified: Zope3/trunk/src/zope/i18n/tests/test_formats.py
===================================================================
--- Zope3/trunk/src/zope/i18n/tests/test_formats.py 2004-07-13 16:40:26 UTC (rev 26460)
+++ Zope3/trunk/src/zope/i18n/tests/test_formats.py 2004-07-13 16:41:08 UTC (rev 26461)
@@ -229,14 +229,14 @@
datetime.datetime(2003, 01, 02, 21, 48, 01))
# German long
- # XXX The parser does not support timezones yet.
+ # TODO: The parser does not support timezones yet.
self.assertEqual(self.format.parse(
'2. Januar 2003 21:48:01 +100',
'd. MMMM yyyy HH:mm:ss z'),
datetime.datetime(2003, 01, 02, 21, 48, 01))
# German full
- # XXX The parser does not support timezones yet.
+ # TODO: The parser does not support timezones yet.
self.assertEqual(self.format.parse(
'Donnerstag, 2. Januar 2003 21:48 Uhr +100',
"EEEE, d. MMMM yyyy H:mm' Uhr 'z"),
@@ -271,14 +271,14 @@
'02.01.2003 21:48:01')
# German long
- # XXX The parser does not support timezones yet.
+ # TODO: The parser does not support timezones yet.
self.assertEqual(self.format.format(
datetime.datetime(2003, 01, 02, 21, 48, 01),
'd. MMMM yyyy HH:mm:ss z'),
'2. Januar 2003 21:48:01 +000')
# German full
- # XXX The parser does not support timezones yet.
+ # TODO: The parser does not support timezones yet.
self.assertEqual(self.format.format(
datetime.datetime(2003, 01, 02, 21, 48),
"EEEE, d. MMMM yyyy H:mm' Uhr 'z"),
More information about the Zope3-Checkins
mailing list