get a serializable version of web forms data

workspace
Brendan Howell 4 years ago
parent abe84ffb2b
commit 29c7125ac7

@ -103,6 +103,7 @@ class IhrApp(Bottle):
else: else:
self.views[prefix] = [view] self.views[prefix] = [view]
def wrapped_cb(): def wrapped_cb():
formdata = request.forms.dict
return callback(request.forms) return callback(request.forms)
self.route("/" + prefix + "/" + view, callback=wrapped_cb) self.route("/" + prefix + "/" + view, callback=wrapped_cb)
self.route("/" + prefix + "/" + view, callback=wrapped_cb, method="POST") self.route("/" + prefix + "/" + view, callback=wrapped_cb, method="POST")

Loading…
Cancel
Save