>
> states = State.select()
> list = widgets.SingleSelectField(options=states)
>

I would use the SQL Construction Language instead of the ORM:

state_list = select([state_table.c.abbrev,state_table.c.name],
                    order_by=[state_table.c.abbrev]).execute()

state = widgets.SingleSelectField(options=state_list)

This syntax seems to have changed a bit in 0.4 though...

Steve


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to