Harry Marr
1529fd901d
Queries may now use multiple operators on fields
2009-11-23 18:16:41 +00:00
Harry Marr
d46191159e
Added DateTimeField and FloatField
2009-11-23 18:03:10 +00:00
Harry Marr
20b259a3e4
Added LICENSE and README.rst
2009-11-22 23:40:06 +00:00
Harry Marr
75f737ade8
Added docs directory, started tutorial
2009-11-22 23:26:21 +00:00
Harry Marr
f2d4ffa091
Cleaned up _to_{python,mongo} + _validate mess
2009-11-22 17:26:47 +00:00
Harry Marr
d4fc5c9260
Removed CollectionManager, moved work to QuerySet
...
As CollectionManager has been replaced with QuerySet and
QuerySetManager, collection.py has been renamed queryset.py.
2009-11-22 16:46:08 +00:00
Harry Marr
70ee0f57ea
Added Document.drop_collection, cleaned up tests
2009-11-21 20:32:29 +00:00
Harry Marr
8e89c8b37a
Added delete method to QuerySet
2009-11-21 20:03:31 +00:00
Harry Marr
3017dc78ed
Renamed project to mongoengine
2009-11-21 18:41:10 +00:00
Harry Marr
5fa01d89a5
Fixed ListField bug, added ReferenceField + tests
2009-11-21 18:15:47 +00:00
Harry Marr
90e27cc87d
find_one now supports using just an object id
2009-11-19 20:28:43 +00:00
Harry Marr
744077b150
Queries now return correct subclasses of Documents
2009-11-19 19:44:51 +00:00
Harry Marr
0674e3c013
Added pretty query format, cursor limit and skip
2009-11-19 17:47:02 +00:00
Harry Marr
5fcb5aba7c
Added ListField type with unit tests
2009-11-19 16:58:25 +00:00
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
ff5e5addf5
Merge branch 'master' of git@hmarr.com:mongomap
2009-11-18 19:09:27 +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
Harry Marr
2674d27587
Fixed bug in BaseDocument __init__
2009-11-18 12:53:45 +00:00
Harry Marr
688fd5af66
Added connect(), document data now stored as Python
...
Added document length, contains, etc with tests
2009-11-17 12:32:42 +00:00
Harry Marr
0bb0ec0114
Added unit test for EmbeddedDocument
2009-11-17 01:48:43 +00:00
Harry Marr
5a87534c22
Got EmbeddedDocumentFields working
...
Added validation on EmbeddedDocumentField, added tests for
EmbeddedDocumentFields.
2009-11-17 01:32:40 +00:00
Harry Marr
48418d5a60
Added required fields, StringFields may be '_id's
...
Included tests for required fields (checks primary key is required
as well).
Switched from using SuperClass.__init__ to super().
Added constructor for EmbeddedDocumentField.
2009-11-17 01:12:52 +00:00
Harry Marr
00d897d29a
Added dictionary-style access to documents
...
Added __init__.py info to package, moved TopLevelDocumentMetaclass
to base.py, added tests for dictionary-style access.
2009-11-16 22:49:37 +00:00
Harry Marr
768bffd67e
Restructured files to avoid circular imports
2009-11-16 13:00:37 +00:00
Harry Marr
af38a92ec9
Initial commit
2009-11-15 15:53:42 +00:00