Skip to content

Commit

Permalink
Added missing Not(Pattern()) error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mansam committed Jan 15, 2014
1 parent 3424d85 commit d53b91d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ v0.1.0, 1/14/2013 -- Initial release.
v0.2.0, 1/15/2013 -- Added Classy validator and tests
v0.2.1, 1/15/2013 -- Fixed validate continuing on a field after failing a Required validation
v0.2.2, 1/15/2013 -- Added Pattern regex validator and tests
v0.2.3, 1/15/2013 -- Added missing Not(Pattern()) error message
2 changes: 2 additions & 0 deletions validator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ def not_lambda(value):
not_lambda.err_message = "must not fall between %s and %s" % (validator.start, validator.end)
elif validator.__name__ == "class_lambda":
not_lambda.err_message = "must not be an instance of %s or its subclasses" % validator.base_class
elif validator.__name__ == "pattern_lambda":
not_lambda.err_message = "must not match regex pattern %s" % validator.pattern

return not_lambda

Expand Down

0 comments on commit d53b91d

Please sign in to comment.