From 9a6acf3021131519a6173e9b3c3531ef5a89280d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 16 Nov 2011 18:41:44 +0100 Subject: [PATCH] add missing get_batchlinkparams method to simple search view --- tabellio/searchform/simple.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tabellio/searchform/simple.py b/tabellio/searchform/simple.py index c039545..4f9dcad 100644 --- a/tabellio/searchform/simple.py +++ b/tabellio/searchform/simple.py @@ -63,3 +63,12 @@ class SimpleSearchView(BrowserView): 'tabellio.agenda.comevent'], SearchableText=self.request.form.get('SearchableText')) + def get_batchlinkparams(self): + d = dict() + for key in self.request.form: + d[key] = self.request.form[key] + if type(d[key]) is str: + d[key] = unicode(d[key], 'utf-8').encode('utf-8') + elif type(d[key]) is unicode: + d[key] = d[key].encode('utf-8') + return d