From 45d2dc794976f0761be883a11f4b6f5bc9c33628 Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Sat, 24 Oct 2020 00:36:25 +0200 Subject: [PATCH] get a serializable version of web forms data --- screenless/bureau/ihr/ihrweb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/screenless/bureau/ihr/ihrweb.py b/screenless/bureau/ihr/ihrweb.py index 351dc30..0be1310 100644 --- a/screenless/bureau/ihr/ihrweb.py +++ b/screenless/bureau/ihr/ihrweb.py @@ -103,7 +103,8 @@ class IhrApp(Bottle): else: self.views[prefix] = [view] def wrapped_cb(): - return callback(request.forms.dict) + # bottle uses a fancy MultiDict but we just want the simple version + return callback(dict(request.forms.items())) self.route("/" + prefix + "/" + view, callback=wrapped_cb) self.route("/" + prefix + "/" + view, callback=wrapped_cb, method="POST")