3 Commits

Author SHA1 Message Date
Harry Marr
8ec6fecd23 Added basic querying - find and find_one 2009-11-19 01:09:58 +00:00
Harry Marr
94be32b387 Created ObjectIdField, removed object_id field parameter 2009-11-18 21:38:41 +00:00
Harry Marr
c99f5c4ec1 Added CollectionManager, made connection module
All connection-related functions are now in connection.py.

Created a ConnectionManager class for interacting with a collection
in the database. Top-level document classes have an instance of
a ConnectionManager (Document.collection).

Defined a 'save' method on top-level document's that uses the collection
manager's '_save_document' method to save the document to the database.

Added tests for CollectionManagers -- all unit tests now require a valid
connection to the database, which is set up in the tests' setUp method.
2009-11-18 19:02:57 +00:00