Re: newforms widget idea

2007-01-09 Thread dummy
Hi Adrian, > This would be a nice addition indeed, but I agree with Honza that the > following syntax would be better: > >choices =( >( 'Group name 1', [(1, 'one'), (2,'two')]), >( 'Group name 2', [(3, 'three'), (2,'four')]), >) > > Would you be willing to rework your patc

Re: newforms widget idea

2007-01-08 Thread Adrian Holovaty
On 1/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I made 2 new widgets, selectgrouped and selectmultiplegrouped, which would resolve such an issue. The optgroup is inserted into choices like a normal option: choices= ( ['__group__', 'label for group'], ['value1', 'label1']) I added a si

Re: newforms widget idea

2007-01-07 Thread Honza Král
On 1/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi all, the select-form-widget and the selectmultiple-form-widget display's a choices-list as ... ... From the per-row-level-permision branch there is an alternative issue to do something like this: ... ... I made