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