Permalink
Browse files

provide compatibility with formencode validators

  • Loading branch information...
amol- committed Nov 26, 2012
1 parent 4d123d0 commit c382eed46d8339ceb75440ed4d998abf1160a150
Showing with 1 addition and 1 deletion.
  1. +1 −1 tw2/core/validation.py
@@ -76,7 +76,7 @@ def message(self):
def safe_validate(validator, value, state=None):
try:
value = validator.to_python(value, state=None)
validator.validate_python(value)
validator.validate_python(value, state=None)
return value
except ValidationError:
return Invalid

0 comments on commit c382eed

Please sign in to comment.