Make the DropDownMultiple widget degrade properly.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 3 Feb 2009 17:36:06 +0000 (18:36 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 3 Feb 2009 17:36:06 +0000 (18:36 +0100)
commit46815b6e34ec269366b36597c3caa8274e3bec3f
treeb2a3c5c58162a9351a22a01d03d215caaa972702
parent4bd2ee34c818b499888d3f0bb52ffbf1eb58580b
Make the DropDownMultiple widget degrade properly.

DropDownMultiple now extends the original SelectMultiple widget and
always renders both widgets. The DropDownMultiple widget is disabled and
hidden by default in the HTML and is enabled by Javascript code, keeping
things working even when Javascript is not available.

As an added advantage, we can now reuse some of the code from
SelectMultiple. In particular, by using the render_options method, we
should now also support more complicated (like grouped) lists of
choices.
tools/widgets/dropdownmultiple.py