Philip Jenvey wrote:
> As far as I can tell htmlfill doesn't handle multiple parameter names
> correctly unless you're using the variable_decode syntax. What I mean
> is given the MultiDict:
>
> MultiDict([('hello', '1'), ('hello', '2'), ('hello', 'hi')])
>
> and html:
>
> <input id="hello" name="hello" type="text" value="" />
> <input id="hello" name="hello" type="text" value="" />
> <input id="hello" name="hello" type="text" value="" />
>
> When passing the MultiDict to htmlfill all three values are filled
> with: "1". When I pass in an actual python dict from MultiDict.mixed
> (), the three values are all filled with: "['1', '2', 'hi']"
I've never really thought about how htmlfill handles multiple elements
with the same name, except checkbox and radio and kind of
select/multiple. It doesn't have any sense of context, like items that
have been used (as would be appropriate in this case).
--
Ian Bicking | [EMAIL PROTECTED] | http://blog.ianbicking.org
| Write code, do good | http://topp.openplans.org/careers
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---