[z3-checkins] r22056 - z3/Five/trunk
regebro at codespeak.net
regebro at codespeak.net
Thu Jan 12 18:35:25 CET 2006
Author: regebro
Date: Thu Jan 12 18:35:25 2006
New Revision: 22056
Modified:
z3/Five/trunk/CHANGES.txt
z3/Five/trunk/i18n.py
Log:
* Unit tests that did i18n via Localizer would fail because the request
attribute that keeps Localizers list of preferred languages did not exist.
Modified: z3/Five/trunk/CHANGES.txt
==============================================================================
--- z3/Five/trunk/CHANGES.txt (original)
+++ z3/Five/trunk/CHANGES.txt Thu Jan 12 18:35:25 2006
@@ -16,6 +16,12 @@
NOTE: Anyone who copied the Five site.zcml to their
$INSTANCE_HOME/etc/ directory is going to need to update it.
+
+Bugs
+----
+
+* Unit tests that did i18n via Localizer would fail because the request
+ attribute that keeps Localizers list of preferred languages did not exist.
Five 1.3.1 (2006-01-08)
=======================
Modified: z3/Five/trunk/i18n.py
==============================================================================
--- z3/Five/trunk/i18n.py (original)
+++ z3/Five/trunk/i18n.py Thu Jan 12 18:35:25 2006
@@ -65,6 +65,9 @@
self.context = context
def getPreferredLanguages(self):
+ if not hasattr(self.context, 'AcceptLanguage'):
+ return []
+
accept_language = self.context.AcceptLanguage
langs = []
for lang, node in accept_language.children.items():
More information about the z3-checkins
mailing list