Commit Graph
100 Commits
Author SHA1 Message Date
Harry Marr b2588d1c4f Changed neq to ne, fixed Q object in and nin 2010-02-10 12:35:41 +00:00
Harry Marr 89f505bb13 Removed pool_size from connect, minor tidyup 2010-02-04 01:44:52 +00:00
Harry Marr 755deb3ffe Added DictField 2010-02-03 01:22:25 +00:00
Harry Marr 0bbf3a3d76 Fixed EmbeddedDocument validation bug 2010-02-02 17:37:09 +00:00
Harry Marr e05d31eaaf Added get{,_or_create} docs 2010-01-31 13:47:27 +00:00
Harry Marr ffc9d7b152 Merge branch 'master' of git://github.com/flosch/mongoengine
Added unit test for get_or_create, merged flosch's get with
punteney's get.

Conflicts:
	mongoengine/queryset.py
2010-01-31 13:24:50 +00:00
Harry Marr 79604180db Merge branch 'master' of git://github.com/punteney/mongoengine 2010-01-31 13:11:20 +00:00
Harry Marr 5cac52720c Fixed querying on ReferenceFields using primary key 2010-01-27 15:57:11 +00:00
Harry Marr bca6119db8 Minor tidyup 2010-01-26 19:36:19 +00:00
Harry Marr 568000805f EmbeddedDocuments may now be non-polymorphic 2010-01-25 01:00:04 +00:00
Harry Marr 2585f1b724 queryset_manager funcs now accept doc as arg 2010-01-23 17:16:01 +00:00
Harry Marr 470e08f616 exec_js functions now acknowledge Q objects 2010-01-23 03:05:27 +00:00
Harry Marr 21b7d8f8ea Bump to v0.2.2 2010-01-16 16:42:51 +00:00
Harry Marr 3357b55fbf Indexing on ListFields now works properly 2010-01-16 15:35:01 +00:00
Harry Marr f01add9ef5 Moved sections from user guide to separate pages 2010-01-16 14:06:45 +00:00
Harry Marr ce69428cc6 Moved validate() to BaseDocument 2010-01-13 16:41:57 +00:00
Harry Marr 1818cf7114 Added q_objs to __call__ args 2010-01-12 18:33:33 +00:00
Harry Marr e7380e3676 Bump to v0.2.1 2010-01-11 16:14:03 +00:00
Harry Marr 597ef8b947 Merge branch 'master' of git@github.com:hmarr/mongoengine 2010-01-11 04:44:13 +00:00
Harry Marr 484bc1e6f0 Added a MongoEngine backend for Django sessions 2010-01-11 04:43:17 +00:00
Harry Marr afd416c84e Updated docs, added force_insert to save() 2010-01-11 04:15:36 +00:00
Harry Marr 84d7987108 Added prepare_query_value for a couple of fields 2010-01-10 21:01:00 +00:00
Harry Marr ec927bdd63 Added support for user-defined primary keys (_ids) 2010-01-10 17:13:56 +00:00
Harry Marr df7d4cbc47 Bump to v0.2 2010-01-10 03:04:46 +00:00
Harry Marr dc51362f0b Merge branch 'master' of git://github.com/punteney/mongoengine 2010-01-09 22:31:28 +00:00
Harry Marr da2d282cf6 Added Q class for building advanced queries 2010-01-09 22:19:33 +00:00
Harry Marr 42a58dda57 Added update() and update_one() with tests/docs 2010-01-08 18:39:06 +00:00
Harry Marr 4d695a3544 Added single and multifield uniqueness constraints 2010-01-08 12:04:11 +00:00
Harry Marr 45080d3fd1 Merge branch 'master' of git://github.com/blackbrrr/mongoengine
_types index prepended to user defined indexes

Conflicts:
	mongoengine/queryset.py
2010-01-08 06:00:35 +00:00
Harry Marr 54d276f6a7 Added index for _types 2010-01-08 04:49:14 +00:00
Harry Marr eb3e6963fa Index specs now use proper field names 2010-01-08 00:15:20 +00:00
Harry Marr 960aea2fd4 Added indexes and Django use to docs 2010-01-07 23:54:57 +00:00
Harry Marr ef5815e4a5 Bump to v0.1.3 2010-01-07 22:49:24 +00:00
Harry Marr b7e8108edd Added docs about using MongoEngine with Django 2010-01-07 22:48:39 +00:00
Harry Marr d48296eacc Added create_user method to Django User model 2010-01-07 22:25:26 +00:00
Harry Marr e0a546000d Added Django authentication backend 2010-01-07 18:56:28 +00:00
Harry Marr 4c93e2945c Added test for meta[indexes] 2010-01-07 15:46:52 +00:00
Harry Marr 2e74c93878 Minor bugfixes 2010-01-07 15:24:52 +00:00
Harry Marr f86496b545 Bump to v0.1.2 2010-01-06 03:23:02 +00:00
Harry Marr 557fb19d13 Query values may be processed before being used 2010-01-06 03:14:21 +00:00
Harry Marr 196f4471be Made connection lazy 2010-01-06 00:41:56 +00:00
Harry Marr 4ae21a671d Document dict access now only looks for fields 2010-01-05 19:37:30 +00:00
Harry Marr af1d7ef664 Added BooleanField 2010-01-05 18:17:44 +00:00
Harry Marr 3bead80f96 Added Document.reload method 2010-01-05 00:25:42 +00:00
Harry Marr 5ca75e9c6d Added changelog to docs, updated manifest 2010-01-04 16:10:42 +00:00
Harry Marr de1847048b Bump to v0.1.1 2010-01-04 04:34:02 +00:00
Harry Marr 6363b6290b Added capped collections support 2010-01-04 03:33:42 +00:00
Harry Marr 0830f0b480 Updated docs to reflect validation changes 2010-01-03 22:44:27 +00:00
Harry Marr b01596c942 Made field validation lazier 2010-01-03 22:37:55 +00:00
Harry Marr 3574198210 QuerySet.first now uses existing cursor 2010-01-03 16:44:24 +00:00
Harry Marr f98e9bd732 Added setup.py and MANIFEST.in, added to PyPI 2010-01-03 02:30:34 +00:00
Harry Marr b89982fd99 Version bump to 0.1 beta 2010-01-02 21:34:48 +00:00
Harry Marr 62bda75112 Added aggregation methods to user guide 2010-01-02 20:42:18 +00:00
Harry Marr e9254f471f Added average to QuerySet 2009-12-30 16:31:33 +00:00
Harry Marr 30d4a0379f Added keyword argument options to exec_js
QuerySet.item_frequencies has new option 'normalize'
2009-12-30 15:55:07 +00:00
Harry Marr 2cc68b46ad Added exec_js and sum functions to QuerySet 2009-12-30 15:14:18 +00:00
Harry Marr 90e5e5dfa9 Fixed delete(), resolved item_frequencies field 2009-12-28 01:39:29 +00:00
Harry Marr 53544c5b0f Queries now translate keys to correct field names 2009-12-27 23:08:31 +00:00
Harry Marr 17aef253cb Added __len__ to QuerySet 2009-12-24 18:45:35 +00:00
Harry Marr 9bfe5c7a49 Added examples to README.rst 2009-12-24 18:36:07 +00:00
Harry Marr f687bad202 Accessing a missing field now returns None rather than raising an AttributeError 2009-12-24 17:10:36 +00:00
Harry Marr 3d70b65a45 Added queryset_manager decorator 2009-12-23 19:32:00 +00:00
Harry Marr 69eaf4b3f6 Added to the docs, mostly the user guide 2009-12-22 03:42:35 +00:00
Harry Marr 78d8cc7df8 Started work on user guide 2009-12-21 04:33:36 +00:00
Harry Marr e204b84183 Added test for custom collection names on Document 2009-12-21 02:52:30 +00:00
Harry Marr 6438bd52b7 Added item_frequencies to QuerySet 2009-12-20 17:17:56 +00:00
Harry Marr bb23cdb038 Added array-style index/slicing syntax to QuerySet 2009-12-19 17:41:28 +00:00
Harry Marr 8a646f0f4c Added API Reference to docs 2009-12-19 16:04:05 +00:00
Harry Marr 9d12dbad70 Made _cls etc optional, merged sort to order_by 2009-12-19 02:33:01 +00:00
Harry Marr 5e6a6aa886 Added sort method to QuerySet 2009-12-18 18:41:44 +00:00
Harry Marr 44fc9096a4 Added delete method to Document objects 2009-12-18 16:57:53 +00:00
Harry Marr 0a64f42d5f Renamed Document._id to id (still _id in DB)
Although MongoDB uses _id, underscore prefixed attributes imply
private access in Python and are sometimes may not be accessed
(e.g. in the Django template language), but id should be public.
2009-12-18 16:31:32 +00:00
Harry Marr fc0e67023a Required fields may now use default values 2009-12-18 13:40:33 +00:00
Harry Marr c3ca3bd97c Updated tutorial, added tutorial link to readme 2009-12-16 18:47:53 +00:00
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