dépôts
/
cavote.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25254e8
)
fix encoding in reminder.py + typo
author
Julien Rabier
<taziden@flexiden.org>
Mon, 20 May 2013 22:47:58 +0000
(
00:47
+0200)
committer
Julien Rabier
<taziden@flexiden.org>
Mon, 20 May 2013 22:47:58 +0000
(
00:47
+0200)
reminder.py
patch
|
blob
|
history
diff --git
a/reminder.py
b/reminder.py
index
56cf4bc
..
90eebf4
100644
(file)
--- a/
reminder.py
+++ b/
reminder.py
@@
-45,7
+45,8
@@
for vote in c.execute('select id, id_group, date_end, title from votes where is_
"Content-type: text/plain; charset=utf-8",
"X-Mailer: %s" % VERSION,
"",
"Content-type: text/plain; charset=utf-8",
"X-Mailer: %s" % VERSION,
"",
- "%s %s : %s" % (gettext(u"A vote concerns you and is going to terminate on"), vote[2], vote[3]),
+ "%s %s : %s" % (gettext(u"A vote concerns you and is going
+ to terminate on"), vote[2], vote[3].encode('utf-8')),
gettext(u"You still didn't take part to it !"),
"",
gettext(u"This link will bring you to the form where you will be able to participate :"),
gettext(u"You still didn't take part to it !"),
"",
gettext(u"This link will bring you to the form where you will be able to participate :"),
@@
-68,8
+69,10
@@
for vote in c.execute('select id, id_group, date_end, title from votes where is_
"Content-type: text/plain; charset=utf-8",
"X-Mailer: %s" % VERSION,
"",
"Content-type: text/plain; charset=utf-8",
"X-Mailer: %s" % VERSION,
"",
- "%s %s : %s" % (gettext(u"A vote concerns you and is going to terminate on "), vote[2], vote[3]),
- gettext(u"You have already voted but you can still modify you choice"),
+ "%s %s : %s" % (gettext(u"A vote concerns you and is going
+ to terminate on "), vote[2], vote[3].encode('utf-8')),
+ gettext(u"You have already voted but you can still modify
+ your choice"),
"",
gettext(u"This link will bring you to the form where you will be able to participate :"),
link,
"",
gettext(u"This link will bring you to the form where you will be able to participate :"),
link,