Hi i have created a custom validator in the the directory modules *customvalidators.py* class COUNT_TEXT(): def __call__(self, value): size = 25 error = None try: if len(value.split()) > size: error="too much words" except: error = "Error counting" return (value, error)
*and put in the model db :* from customvalidators import COUNT_TEXT custom_auth_table.abstract.requires=COUNT_TEXT() It works on Win7 but on my fedora it does not ? i do not understand why Coud you give an idea ? On fedora it seems that the function is not taking into account ; i can make errors in the script , nothing can prevent the process, i have no error .. ?? why On windows an error appear if i write a stupid thing Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.