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):

        self.getFormFields()

        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')

            errs.append(err)

        return errs

 

--

David Johnson

 

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to