FormAlchemy / formalchemy

MIT License
81 stars 29 forks source link

Support for webhelpers optgroups #28

Closed cormier closed 12 years ago

cormier commented 12 years ago

Webhelper's tags.select can produce a select that uses optgroups if its options is a tuple or a list in the form of (value, label) where value is also a tuple or a list.

Modifies the (value, label) permutation so that it only does a permutation of the leaves and not the structure that generates the optgroup.