Whats wrong with this code?

db.Person.nPerson.requires=IS_NOT_EMPTY('You should insert a
name'),IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[áÁ]*[éÉ]*[íÍ]*[óÓ]*[úÚ]*)
+',error_message='Only insert a-z A-Z áÁ éÉ íÍ óÓ úÚ and
spaces'),IS_NOT_IN_DB(db, 'Person.nPerson','This person is in the
database')

When i insert 123 it should appear the error message but it insert
this value in the databse, when i verify it appears empty. What i am
doing wrong?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to