isop...@gmail.com
unread,Jun 16, 2011, 1:56:48 AM6/16/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MongoKit
The VersionedDocument remove() method has a bug which results in the
query parameter being ignored, and the entire collection being
removed. The key part of the method is:
def remove(self, query, *args, **kwargs):
...
self.collection.remove(spec_or_object_id=query, *args,
**kwargs)
However, the pymongo signature for Collection.remove is:
remove(self, spec_or_id=None, safe=False, **kwargs)
Note - spec_or_id not spec_or_object_id