do not barf on unicode parameters

This commit is contained in:
Frédéric Péters 2011-10-03 13:32:43 +02:00
parent 900015a622
commit de90107561
1 changed files with 1 additions and 2 deletions

View File

@ -7,8 +7,7 @@
mq python:modules['ZTUtils'].make_query;
url batch_base_url | request/ACTUAL_URL;
batchformkeys batchformkeys|nothing;
batchlinkparams python:batchformkeys and dict([(key, request.form[key]) for key in batchformkeys
if key in request]) or request.form;
batchlinkparams python:batchformkeys and dict([(key, unicode(request.form[key]).encode('utf-8')) for key in batchformkeys if key in request]) or dict([(key, unicode(request.form[key]).encode('utf-8')) for key in request.form]);
deputy_results view/deputy_results;
page_results view/page_results;
doc_results view/doc_results;