MultiValueDict?

BarakatX2 barakatx2 at gmail.com
Fri Jun 26 18:09:41 CEST 2009


<MultiValueDict: {u'rqFiles': [<InMemoryUploadedFile: log.png (image/
png)>, <InMemoryUploadedFile: add.png (image/png)>,
<InMemoryUploadedFile: del.png (image/png)>]}>

    for f in files['rqFiles']:
        print f.name

This gives me an "'str' object has no attribute 'name'" error. I don't
know if there is a special way to access MultiValueDicts values, but I
assumed each key has a list that is accessed just like any other list.
Any help is appreciated.



More information about the Python-list mailing list