diff options
author | Christian Franke <nobody@nowhere.ws> | 2012-01-24 00:29:44 +0100 |
---|---|---|
committer | Christian Franke <nobody@nowhere.ws> | 2012-01-24 00:29:44 +0100 |
commit | 639f6bee335e0f68ed6ce08bbb9934b182cc46fe (patch) | |
tree | c9962cd1aeea5190fc3bd598e49e1cec8394bf6e /sublab_project/calendarium | |
parent | ef367be161e91cb111ac17e046ef4f1c8706b161 (diff) |
Fixup event descriptions (again :S )
Diffstat (limited to 'sublab_project/calendarium')
-rw-r--r-- | sublab_project/calendarium/tasks.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sublab_project/calendarium/tasks.py b/sublab_project/calendarium/tasks.py index a2639dc..d0ab16d 100644 --- a/sublab_project/calendarium/tasks.py +++ b/sublab_project/calendarium/tasks.py @@ -46,7 +46,8 @@ class CalendariumImport(PeriodicTask): event_info = {} for fieldinfo in event_fields: try: - event_info[fieldinfo[0]] = event[fieldinfo[1]].format() + event_info[fieldinfo[0]] = event[fieldinfo[1]].format().encode("utf-8") + event_info[fieldinfo[0]] = event_info[fieldinfo[0]].decode("string-escape") except KeyError: event_info[fieldinfo[0]] = fieldinfo[2] start = icalendar.vDatetime.from_ical(event['dtstart'].ical()) |