add missing get_batchlinkparams method to simple search view

This commit is contained in:
Frédéric Péters 2011-11-16 18:41:44 +01:00
parent e2c46c8e4f
commit 9a6acf3021
1 changed files with 9 additions and 0 deletions

View File

@ -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