sunlightlabs/validictory — pull request #52 by msabramo (2013-05-29 18:32:43+00:00)
Title: Treat dict-like objects like dicts

validictory currently only treats a true `dict` object as being of `{"type": "object"}`; it does not allow dict-like objects, like `UserDict`, `sqlalchemy.engine.result.RowProxy`, and `webob.multidict.NestedMultiDict`, to validate as `{"type": "object"}` -- this PR changes that.

Note that if you don't want to add test dependencies on `sqlalchemy` and `webob`, you can just cherry-pick ff81810, which adds no new dependencies.

```
marca@marca-mac:~/dev/git-repos/validictory$ tox
...
py27: commands succeeded
pypy: commands succeeded
py33: commands succeeded
ERROR: flake8: commands failed
```

The `flake8` failure is from pre-existing issues (mostly lines that are too long).