[Mpuls-commits] r4886 - in base/trunk: . mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 7 16:10:29 CEST 2011
Author: bh
Date: 2011-04-07 16:10:28 +0200 (Thu, 07 Apr 2011)
New Revision: 4886
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/model/case.py
Log:
Fix mpuls/issue1977: use unicode, not str, in MpulsCase.getSubject
* mpulsweb/model/case.py (MpulsCase.getSubject): Convert the
values using unicode instead of str. str cannot handle non-ASCII
characters.
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2011-04-07 14:02:32 UTC (rev 4885)
+++ base/trunk/ChangeLog 2011-04-07 14:10:28 UTC (rev 4886)
@@ -1,3 +1,11 @@
+2011-04-07 Bernhard Herzog <bh at intevation.de>
+
+ Fix mpuls/issue1977: use unicode, not str, in MpulsCase.getSubject
+
+ * mpulsweb/model/case.py (MpulsCase.getSubject): Convert the
+ values using unicode instead of str. str cannot handle non-ASCII
+ characters.
+
2011-04-06 Ludwig Reiter <ludwig.reiter at intevation.de>
* mpulsweb/i18n/de/LC_MESSAGES/mpulsweb.po:
Modified: base/trunk/mpulsweb/model/case.py
===================================================================
--- base/trunk/mpulsweb/model/case.py 2011-04-07 14:02:32 UTC (rev 4885)
+++ base/trunk/mpulsweb/model/case.py 2011-04-07 14:10:28 UTC (rev 4886)
@@ -870,7 +870,7 @@
for f in self.get_infofield_fields():
x = self.get_value(f.name)
if x:
- values.append(str(x))
+ values.append(unicode(x))
return ", ".join(values)
def getPhase(self):
More information about the Mpuls-commits
mailing list