From 7aed6ac354042943a7727320bf384aacf7c57732 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Wed, 21 Sep 2011 20:56:58 +0200 Subject: [PATCH] encoding error HGr Bitte gib eine Versions-Meldung ein. Zeilen beginnend mit 'HG:' werden entfernt. --- openslides/participant/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/openslides/participant/views.py b/openslides/participant/views.py index 894366f26..3084db1b9 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -44,8 +44,14 @@ def get_overview(request): for key in dict: newdict[key] = [dict[key][0].encode('utf-8')] return newdict + + def encodedict(dict): + newdict = {} + for key in dict: + newdict[key] = [unicode(dict[key][0].decode('utf-8'))] + return newdict try: - sortfilter = parse_qs(request.COOKIES['participant_sortfilter']) + sortfilter = encodedict(parse_qs(request.COOKIES['participant_sortfilter'])) except KeyError: sortfilter = {}