FormAlchemy/formalchemy — pull request #27 by cormier (2012-03-15 21:56:25+00:00)
Title: Removed the select_options permutation to let a user can use the webhelpers built-in features 

If somebody uses a structure like this:
countries = [[[('MB', 'Manitoba'), ('AB', 'Alberta')], 'Canada'], [[('FL', 'Florida'), ('NY', 'New York')], 'USA']]

formalchemy will convert it to:

[('Canada', [('MB', 'Manitoba'), ('AB', 'Alberta')]),
('USA', [('FL', 'Florida'), ('NY', 'New York')])]

which will not let webhelpers use optgroups: 'Canada' will be the value and the array will be the label

--
From the webhelpers doc: "options – an Options object or iterable of (value, label) pairs. The label will be shown on the form; the option will be returned to the application if that option is chosen. If you pass a string or int instead of a 2-tuple, it will be used for both the value and the label. If the value is a tuple or a list, it will be added as an optgroup, with label as label."