You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example : currently, if self.request.arguments returns {'key1':
['val3'], 'key2': ['val1', 'val2']}
self.get_argument(key2) will return 'val2'
and with an allow_multiple=True :
self.get_argument(key2, allow_multiple=True) it should return ['val1',
'val2']
I know it's possible to do : self.request.arguments['key2'], but here
we missed all unicode/utf-8 functions.
Another thing, in my example : {'key1': ['val3'], 'key2': ['val1',
'val2']}
For key1, that is not "multiple", self.request.arguments should return
{'key1': 'val3', 'key2': ['val1', 'val2']}.
i.e. : key1 should not be a list but a value.
I think it is the same issue with self.request.files, that always
returns a list even if there is only one file.
Like Google webapp : http://code.google.com/intl/fr/appengine/docs/python/tools/webapp/req...
it could be nice to have an "allow_multiple=True" in the get_argument
function. (or a get_all_argument)
Example : currently, if self.request.arguments returns {'key1':
['val3'], 'key2': ['val1', 'val2']}
self.get_argument(key2) will return 'val2'
and with an allow_multiple=True :
self.get_argument(key2, allow_multiple=True) it should return ['val1',
'val2']
I know it's possible to do : self.request.arguments['key2'], but here
we missed all unicode/utf-8 functions.
Another thing, in my example : {'key1': ['val3'], 'key2': ['val1',
'val2']}
For key1, that is not "multiple", self.request.arguments should return
{'key1': 'val3', 'key2': ['val1', 'val2']}.
i.e. : key1 should not be a list but a value.
I think it is the same issue with self.request.files, that always
returns a list even if there is only one file.
more info here : http://groups.google.com/group/python-tornado/browse_frm/thread/33325d1c500dccef/7af8756c4547b6bc
The text was updated successfully, but these errors were encountered: