mongokit
mongokit copied to clipboard
RuntimeError: maximum recursion depth exceeded while calling a Python object
If a model class name and the collection name match, we see below error
... File "/usr/local/lib/python2.7/dist-packages/bottle.py", line 1729, in wrapper rv = callback(*a, **ka) RuntimeError: maximum recursion depth exceeded while calling a Python object
@connection.register
class Foo(Document):
__database__ = 'FooDb'
__collection__ = 'Foo'
#my document properties go here.
I used PyMongo 2.7.2 and MongoKit 0.9.1.1