Jared Kuolt, el lunes 19 de diciembre a las 09:57 me escribiste:
[snip]
> # Multiple selection
> widgets.SelectField(options=options_b,
> attrs={"multiple":"True"},
> name="Multiple",
> default=["val3","val4"])
> ])
[snip]
> Thoughts and feedback are greatly appreciated. Criticism is loathed
> but necessary. Praise is probably not good for my ego ;)
Just a little thought, doesn't "multiple" deserves it own option in the
constructor? Like widgets.SelectField(options=options_b, multiple=True, ...)
I think the attrs parameter is great for easly hack the widget, but in
this case, a general and very common use case, I think is much more
cleaner and nicer to have a special parameter 'multiple' to make the
SelectField behave that way.
--
Leandro Lucarella (luca) | Blog colectivo: http://www.mazziblog.com.ar/blog/
.------------------------------------------------------------------------,
\ GPG: 5F5A8D05 // F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05 /
'--------------------------------------------------------------------'
¿Cómo estais? ¿Cómo os senteis hoy 29 del membre de 1961 día en que
conmemoreramos la nonésima setima nebulización del martir Peperino
Pómoro junto al Rolo Puente en la ciudad de Jadad?
-- Peperino Pómoro