Robin Haswell wrote:
> Hey there
>
> Would it be possible to get <optgroup> functionality in
> SingleSelectField before 1.0? I believe it's missing at the moment
> because searching the source tree returns essentially nothing.
>
How would you like this to work ideally?
I mean what's the most intuitive way of marking an option group when
passing options from an user POV?
I can see two ways:
actual way without optgroup:
options=[(1, "Python"), (2, "Java")]
solution 1)
options=["Dynamic Languages", (1, "Python"), (2, "Java"), "Others", (3,
"Java"), (4, "C++")]
solution 2) more correct semantically and probably easier to handle
since I can check for the presence of a dict for backward
compatibility.
options={'Dynamic Languages': (1, "Python"), (2, "Java")
'Others': (3, "Java"), (4, "C++")}
I vote for option 2).
But I still need to think about the implementation details also to be
sure that this thing is backward compatible... I don't have much time
ATM.
Can you open a ticket for this? link the discussion also.
Ciao
Michele
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---