1.1 --- a/htdocs/styles.css Tue Nov 03 23:56:13 2015 +0100
1.2 +++ b/htdocs/styles.css Tue Nov 03 23:56:56 2015 +0100
1.3 @@ -301,6 +301,12 @@
1.4 display: block;
1.5 }
1.6
1.7 +/* Separate the ignore control. */
1.8 +
1.9 +input.ignore {
1.10 + margin-left: 2em;
1.11 +}
1.12 +
1.13 /* Make calendar labels occupy cells completely.
1.14 See: http://stackoverflow.com/questions/2841484/how-can-a-label-completely-fill-its-parent-td
1.15 */
2.1 --- a/imiptools/profile.py Tue Nov 03 23:56:13 2015 +0100
2.2 +++ b/imiptools/profile.py Tue Nov 03 23:56:56 2015 +0100
2.3 @@ -24,6 +24,7 @@
2.4 from imiptools.filesys import fix_permissions, FileBase
2.5 from os.path import exists, isdir
2.6 from os import listdir, makedirs
2.7 +import codecs
2.8 import pytz
2.9
2.10 def identity_dict(l):
2.11 @@ -191,7 +192,7 @@
2.12 if not filename or not exists(filename):
2.13 raise KeyError, name
2.14
2.15 - f = open(filename)
2.16 + f = codecs.open(filename, encoding="utf-8")
2.17 try:
2.18 return f.read().strip()
2.19 finally:
2.20 @@ -205,7 +206,7 @@
2.21 if not filename:
2.22 return False
2.23
2.24 - f = open(filename, "w")
2.25 + f = codecs.open(filename, "w", encoding="utf-8")
2.26 try:
2.27 f.write(value)
2.28 finally:
3.1 --- a/imipweb/event.py Tue Nov 03 23:56:13 2015 +0100
3.2 +++ b/imipweb/event.py Tue Nov 03 23:56:56 2015 +0100
3.3 @@ -157,7 +157,7 @@
3.4 page.add(" ")
3.5 self.control("discard", "submit", "Discard event")
3.6 page.add(" ")
3.7 - self.control("ignore", "submit", "Do nothing for now")
3.8 + self.control("ignore", "submit", "Return to the calendar", class_="ignore")
3.9 page.p.close()
3.10
3.11 if self.is_organiser():
3.12 @@ -177,7 +177,7 @@
3.13 self.control("discard", "submit", "Discard event")
3.14
3.15 page.add(" ")
3.16 - self.control("ignore", "submit", "Do nothing for now")
3.17 + self.control("ignore", "submit", "Return to the calendar", class_="ignore")
3.18 page.add(" ")
3.19 self.control("save", "submit", "Save without sending")
3.20 page.p.close()