emory-libraries/eulxml — pull request #4 by jheath- (2012-05-10 14:30:36+00:00)
Title: Modified BoolMapper to take a callback and normalize kwargs.

When the callback is specified the evaluation will be deferred to the callback. The callback can then apply more complex tests, use regular expressions etc.
Normalize works the same as in StringField.

Made changes to SimpleBooleanField to support new kwargs.

Example:
is_valid = SimpleBooleanField('/foo', false=r'regex', callback=test_foo, normalize=True)

Changes should be backwards compatible.