actually, i like the notion of options_for_select supporting a none
option
i'd like to see that supported at some time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
pylons-discuss group.
To post to this group,
Hi all,
I have a small concern with the options_for_select_* helpers: I find
myself, more often than not, having to add an empty option, meaning
that no object is selected. Typically, that happens every time I have a
foreign key that is allowed to be NULL.
One approach would be to use a Null
OK, next time I will code before I ask... Writing the simple
options_for_select_from_objects_with_none helped me find what is
probably the right way to do it with existing helpers:
% h.select('room_id', h.options_for_select([['No room', '']])
+ h.options_for_select_from_objects(c.rooms,