j2labs/dictshield — pull request #76 by fawce (2012-04-05 20:29:06+00:00)
Title: proposing a change to validation behavior

using dictshield for numbers, our web forms were sending in strings. The strings are parseable as integers, so validation was passing (numberfield casts the value as a validation). However, the original string is being kept in the dictionary, so when we pulled the value out later to do some arithmetic, we has str + Integer errors.

our use case was to create a Document, validate it, send the document to be worked on, then persist it. A bit unusual, perhaps, to use the data in the Document before saving, but a reasonable case I hope you will support.

Happy to do more work if you would prefer to see this implemented differently.

thanks,
fawce