I think form.vars are always returned as strings anyway,  so just try:

Field('rating',type='integer',default=0,requires=IS_IN_SET(['0','1','2',...])),


On Thursday, December 6, 2012 8:25:15 AM UTC, Annet wrote:
>
> I have the following field definition:
>
>
> Field('rating',type='integer',default=0,requires=IS_IN_SET([0,1,2,3,4,5,6,7,8,9,10])),
>
> When rating is 0 the drop down field is empty and the drop down list shows 
> the set of ints.
> When rating is greater than 0 the drop down field does display the int.
>
> Why doesn't this work?
>
> Kind regards,
>
> Annet.
>

-- 



Reply via email to