I’m using formlib and trying to implement a validator on a new-use sign up form. It seems to work unless I provide my own widget errors.  Below is my validator. The code is being executed (I can see my debug code).  Any ideas?  What am I not understanding?  The form simply returns with no validation errors at all. 


    def checkFields(self,action,data):


        errs = self.validate(None,data)

        if len(errs) > 0 :

            return errs

        errs = []

        if self.principalsource.has_key(self.login):

            print "Login in use"

            err = WidgetInputError('login','E-Mail','Already registered')


        return errs



David Johnson


Zope3-users mailing list

Reply via email to