what did you expect ? you are overwriting the requires attribute. requires 
either takes a single validator or a list of them: just append to requires 
instead of reassigning ^_^

On Thursday, September 5, 2013 10:21:48 PM UTC+2, greenpoise wrote:
>
> I was tweaking my tables to change the INPUT to upper case. All the fields 
> that I changed it to, worked except for one field. It has this:
>
> Field('seriesname',requires=IS_UPPER())
>
>
>
> and then at the end of the table it has this:
>
>
> db.series.seriesname.requires = IS_NOT_IN_DB(db,db.series.seriesname)
>
>
>
> If I remove the second one, IS_UPPER() works..if I have both, IS_UPPER() 
> does not work. Very strange and it only happens with this table and field. 
> I have IS_UPPER in more than 6 fields on different tables and they all 
> work. Strange isnt?
>
>
>
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to