namlook/mongokit — pull request #77 by jberends (2012-02-09 16:32:47+00:00)
Title: Unicode checking of objectID in VersionedDocuments to retrieve last revision id

Corrected a bug on multiple save of versioned documents saved with an objectID() as '_id'. The retrieval of the get_last_revision_id is now checked against a unicode version of the objectID (as the unicode version of the ObjectID is stored in the version container).

Also Added two tests to check for that and they both pass at the moment.

--

I made some mistake in the commit to alter the line-endings. So the changes seem dramatic. However I only added the bottom 2 unittestcases and some code at the 'TODO' in the versioned_document.py. You can take a look and see what I changed and decide if this is the right way to go.