Hi,

Yay, that's it. I was doing a poor unicode conversion process:

if request.method == 'POST':
    for k,v in request.POST.items():
        request.POST[k] = v.decode('UTF-8')

...wich obviously eat duplicates entries

The good function is described at
http://pylonshq.com/docs/0.9.4.1/internationalization.html#request-parameters

Thanks a lot
Laurent


On 28 mar, 20:15, Philip Jenvey <[EMAIL PROTECTED]> wrote:
> On Mar 28, 2007, at 8:39 AM, laurent wrote:
>
>
>
>
>
> > Hi,
>
> > I think there is a bug in the processing of select field with the
> > "multiple" option. I have a form with this field :
>
> > <SELECT NAME="bob" MULTIPLE>
> > <option value="1" selected>1</option>
> > <option value="2" selected>2</option>
> > <option value="3" selected>3</option>
> > <option value="4" selected>4</option>
> > </SELECT>
>
> > In my controller, h.log(request.params) outputs:
> > => MultiDict([('bob', u'4')])
>
> > Shouldn't I receive (1,2,3,4) instead ?
>
> You should have entries for all four values, yes
>
> I notice your MultiDict contains unicode values. Are you converting
> values to unicode prior? Maybe your conversion code isn't handling
> multiple values correctly?
>
> --
> Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to