Skip to content

Commit

Permalink
bug fix in form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
anand committed Apr 14, 2007
1 parent dd8188a commit b22d395
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trunk/web/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ def validates(self, source=None, _validate=True, **kw):
else:
i.value = v
if _validate:
self.valid = out and self._validate(source)
out = out and self._validate(source)
self.valid = out
return out

def _validate(self, value):
Expand Down

0 comments on commit b22d395

Please sign in to comment.