I have a table Calc. I have an Enum type "choose" in it. In some other part 
of the code, I wan to have the possible values of this Enum type. How I can 
achieve this?

# Present Calc class in Calc.py file
class Calc(DeclarativeBase):
     __tablename__= calcs
     id =  Column(Integer, primary_key=True)
     choose = Column(Enum('min', 'max', 'avg')

# Desired in some other file
import Calc
for choice in Calc.choose: print choices # I want something like this to 
iterate over options of 'choose' in 'Calc'.

PS: I am using turbogears 2.2rc2

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/mF1ZWU6RFEAJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to