Your file format should be dos (i.e. every line ends with \r\n).
If you vim you should be able to execute :set ff=unix to fix this. Thanks. From: [email protected] [mailto:[email protected]] On Behalf Of Laurent Lc Sent: 14 December 2015 22:06 To: web2py-users <[email protected]> Subject: [web2py] CUSTOM VALIDATOR 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 [email protected] <mailto:[email protected]> . For more options, visit https://groups.google.com/d/optout. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.

