[Zope3-Users] formlib validator
David Johnson
djohnson at jsatech.com
Sun Apr 23 11:27:15 EDT 2006
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope3-users/attachments/20060423/0e29c5c5/attachment.htm
More information about the Zope3-users
mailing list