Re: [sqlalchemy] how to iterate over Enum's possible values

2012-08-01 Thread Michael Bayer
The values are in there as Calc.choose.property.columns[0].type_.enums. But this isn't how you'd want to go about this, you want to make your particular enum here a Python type you can work with, something simple might be: choose_type = set(['min', 'max', 'avg']) class Calc(...): ...

Re: [sqlalchemy] how to iterate over Enum's possible values

2012-08-01 Thread jeetu
Just for other people's reference, the working statement is Calc.choose.property.columns[0].type.enums On Wednesday, 1 August 2012 23:11:14 UTC+5:30, jeetu wrote: Thanks Michael, I actually saw that page of yours before posting this question. That is awesome work, especially for the