toscawidgets/tw2.core — pull request #71 by amol- (2012-11-26 15:32:58+00:00)
Title: safe_validate didn't work with formencode validators

While tw2.core.validators.safe_validate did provide support for the state parameter in to_python it didn't provide any to the validate_python call. This lead to a crash when using it with formencode validators.

The provided commit just makes possible to use safe_validate even when formencode validators are used.