marcelnicolay/asyncmongo-orm — pull request #4 by silverity (2012-05-06 18:44:48+00:00)
Title: Write more meaningful message when fields defined as ObjectField raise ValueError with non-dict values

If you have a Collection instance with ObjectField, and try to assign non-dict value to it the following exception is thrown:

File "/home/project/lib/python2.7/site-packages/asyncmongoorm/field.py", line 28, in __set__
value = self.field_type(value)
ValueError: dictionary update sequence element #0 has length 1; 2 is required