[Zope3-checkins] CVS: Zope3/src/zope/products/securitypolicy/browser - principalroleview.py:1.4 rolepermissionview.py:1.3

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Feb 5 17:53:06 EST 2004


Update of /cvs-repository/Zope3/src/zope/products/securitypolicy/browser
In directory cvs.zope.org:/tmp/cvs-serv7674/src/zope/products/securitypolicy/browser

Modified Files:
	principalroleview.py rolepermissionview.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/products/securitypolicy/browser/principalroleview.py 1.3 => 1.4 ===
--- Zope3/src/zope/products/securitypolicy/browser/principalroleview.py:1.3	Thu Jan 15 18:25:22 2004
+++ Zope3/src/zope/products/securitypolicy/browser/principalroleview.py	Thu Feb  5 17:52:35 2004
@@ -87,7 +87,8 @@
                     else:
                         raise ValueError("Incorrect setting %s" % setting)
 
-            formatter = self.request.locale.getDateTimeFormatter('medium')
+            formatter = self.request.locale.dates.getFormatter(
+                'dateTime', 'medium')
             status = _("Settings changed at ${date_time}")
             status.mapping = {'date_time': formatter.format(datetime.utcnow())}
 


=== Zope3/src/zope/products/securitypolicy/browser/rolepermissionview.py 1.2 => 1.3 ===
--- Zope3/src/zope/products/securitypolicy/browser/rolepermissionview.py:1.2	Wed Jan 14 17:55:33 2004
+++ Zope3/src/zope/products/securitypolicy/browser/rolepermissionview.py	Thu Feb  5 17:52:35 2004
@@ -139,7 +139,8 @@
             changed = True
 
         if changed:
-            formatter = self.request.locale.getDateTimeFormatter('medium')
+            formatter = self.request.locale.dates.getFormatter(
+                'dateTime', 'medium')
             status = _("Settings changed at ${date_time}")
             status.mapping = {'date_time': formatter.format(datetime.utcnow())}
 




More information about the Zope3-Checkins mailing list