2008/4/23 aka <[EMAIL PROTECTED]>:

> Hi, can somebody tell me how to retrieve ENUM values from MySQL db in
> TurboGears?


I had the same problem, when using SO this can be done with:
    Dog.sqlmeta.columns['sex'].enumValues

Offcourse you have to replace Dog with your table and sex with your field.
 When you want the default value: replace enumValues with default.

-- 
Cecil Westerhof

--~--~---------~--~----~------------~-------~--~----~
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