If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

When need to check that "username" is not an email : 


    def __init__(self, error_message='You can\'t use email as username'):
        self.e = error_message
    def __call__(self, value):
        if not IS_EMAIL()(value)[1]:
            return (value, self.e)
        return (value, None)




Related slices

Comments (0)

Hosting graciously provided by:
Python Anywhere