On Sep 5, 5:58 am, Iceberg <iceb...@21cn.com> wrote:
> So my proposal is to adjust OptionsWidget to always show up with an
> initial blank (when creating record), but not necessarily accepting
> it. Just change line 198 of sqlhtml.py from:
>   opts = []
> to:
>   if value:
>     opts = []
>   else: # To enforce an explicit choice when creating new record
>     opts = [OPTION(_value='')]

Nice idea, however, sometimes we do want the 1st option to be a
default (since it's by far the most common option) & not make people
select every time they're entering data....so this behaviour should be
optional.
Also, in order not to break backward-compatibility, this optional flag
should default to off.

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to