On Saturday 09 January 2010 17:17:26 Tomasz Zieliński wrote: > On 9 Sty, 01:23, datta <dattatrey...@gmail.com> wrote: > > I am using Django for a scientific applicaition. If I have to > > transport a vector/array 'to' a form, dismantle it and display the > > relevant information, it is easy. But how I capture vectors/array > > datatypes 'from' the HTML forms (submitted by the user) in the > > view.class and work with them. > > > > i.e., i am asking if there is a efficient way of handling 'array' data > > types in forms (other than using a single variable name in the (html) > > form and doing a get_all from the (parent) request object) > > I'm not sure what you are asking for, but request.POST['vector'] > contains > list or tuple of values gathered from vector=1&vector=2&(etc...) POST > data.
Indeed, or have a look at QueryDict: http://docs.djangoproject.com/en/1.1/ref/request-response/#querydict-objects Frédéric Burlet.
signature.asc
Description: This is a digitally signed message part.