[Zope3-checkins] CVS: Zope3/src/zope/app/browser - undo.py:1.11
Stephan Richter
srichter at cosmos.phy.tufts.edu
Thu Feb 5 17:52:47 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv7674/src/zope/app/browser
Modified Files:
undo.py
Log Message:
ICU joined openi18n.org and developed a locale data XML standard called
LDML. A result of this was that all locale files were changed to this new
format. To stay up-to-date with the latest data, I converted the locale
parser to read the new format. While I was at it, I also changed the Locale
data structure a bit, since I wanted to keep the objects similar to the
XML. Furthermore, the first time around I did not implement the inheritance
of object attributes and dictionaries correctly (I just faked it for the
API calls), so I think I got it right this time. Finally I updated views
and tests that relied on the old Locale API. Be aware that you might need
to change some of your product code as well.
=== Zope3/src/zope/app/browser/undo.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/undo.py:1.10 Fri Jan 16 07:16:37 2004
+++ Zope3/src/zope/app/browser/undo.py Thu Feb 5 17:52:06 2004
@@ -87,7 +87,7 @@
def getUndoInfo(self, first=0, last=-20, user_name=None):
utility = getUtility(self.context, IUndoManager)
info = utility.getUndoInfo(first, last, user_name)
- formatter = self.request.locale.getDateTimeFormatter('medium')
+ formatter = self.request.locale.dates.getFormatter('dateTime', 'medium')
for entry in info:
entry['datetime'] = formatter.format(entry['datetime'])
return info
More information about the Zope3-Checkins
mailing list