I am having a difficult time understanding what you want. 1. Do you want the form to give an error if the text is not in uppercase? 2. Or do you want to change the text to uppercase before saving the data?
If you want it to change to uppercase, use the 'string = string.uppercase()' function. The 'is_upper' assumes utf8, converts everything to utf8. You can see the source here: http://web2py.com/examples/static/epydoc/web2py.gluon.validators-pysrc.html#IS_UPPER.__call__ Ah, I see that web2py is mixing validation with formatting. The two should really be split into separate domains. On Sunday, June 2, 2013 5:31:21 PM UTC-7, www.diazluis.com wrote: > > greetings to all. > in the following model (which generally works well) > > http://pastebin.com/DkUvq29r > > when the user enters values in the group are not changed > to uppercase by the system .. bone does not apply is_upper () that > Requires to define in this field > > the controller is as follows: > > http://pastebin.com/eSCGdb6H > > any additional recommendations be grateful (pq work alone: S) > > > in the following code works as it should > http://pastebin.com/NfSS7Pdq > > http://pastebin.com/dxDvnqUb > > when income country data in the table using grid, the system places > all uppercase when > stored in the DB > > Now do not get pq does not work .. > buee the other is that is not working correctly with SQLFORM.factory .. > > -- > Díaz Luis > Analista Programador Facultad de Odontología UC > User Linux 532223 > -- --- 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.

