On 3/30/06, yml <[EMAIL PROTECTED]> wrote: > > Thank you you are amazing > ============ > here it the solution > ============= > if new_data['localisation']: > print "new_data contains : " +str(new_data) > loc=new_data.getlist('localisation') > print 'loc : '+str(loc) > print "new_data['localisation'] contains : " +str(loc) > temp.set_localisation(loc) > > the explanation is obvious when you know about it. > here it is the complete explanation: > http://www.djangoproject.com/documentation/request_response/#querydict-objects > > The short one is : > * new_data['localisation'] return the last value > * new_data.getlist('localisation') return the list > > this is the kind of thing where you have to get burned once before > knowing it is hot for ever... > > Thank you very much limodou for your great support. >
You are welcome. I forgot that if you want to get a list from a MultiDict you should using getlist(). But it seems no this situation in M-R branch. I'll check the source code carefully. :P -- I like python! My Blog: http://www.donews.net/limodou My Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---