Trees | Indices | Help |
---|
|
1 import flask 2 from werkzeug.datastructures import MultiDict 3 46 input = without_empty_fields(get_input_dict()) 7 output = {} 8 9 for k, v in input.items(): 10 # Transform lists to strings separated with spaces 11 if type(v) == list: 12 v = " ".join(map(str, v)) 13 14 output[k] = v 15 16 # Our WTForms expect chroots to be this way 17 for chroot in input.get("chroots") or []: 18 output[chroot] = True 19 20 output.update(flask.request.files or {}) 21 return MultiDict(output)22 23 26 2729 return MultiDict(get_input_dict())30 31 39
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 | http://epydoc.sourceforge.net |