82 Commits

Author SHA1 Message Date
blackbrrr
b0b8e11c60 Merge branch 'master' into deferred_fields 2010-01-14 11:39:09 -06:00
blackbrrr
7e0fcb9e65 groundwork for deferred fields 2010-01-14 11:39:03 -06:00
blackbrrr
b3c9a76619 Merge branch 'master' of git://github.com/hmarr/mongoengine 2010-01-14 11:32:39 -06:00
blackbrrr
1cdeb8130d ObjectIdField.to_python returns pymongo.objectid.ObjectId 2010-01-14 11:32:01 -06:00
Harry Marr
ce69428cc6 Moved validate() to BaseDocument 2010-01-13 16:41:57 +00:00
blackbrrr
d85ee4e051 fixed merge conflict in BaseField.__init__ 2010-01-12 12:19:30 -06:00
blackbrrr
cfc394963f added queryset chaining via 'filter' method. test included. 2010-01-12 12:16:15 -06:00
Harry Marr
afd416c84e Updated docs, added force_insert to save() 2010-01-11 04:15:36 +00:00
Harry Marr
ec927bdd63 Added support for user-defined primary keys (_ids) 2010-01-10 17:13:56 +00:00
James Punteney
3b37bf4794 Adding __repr__ methods to the queryset and BaseDocument to make it easier to see the results in the console 2010-01-09 10:48:05 -05:00
Harry Marr
4d695a3544 Added single and multifield uniqueness constraints 2010-01-08 12:04:11 +00:00
blackbrrr
9195d96705 added default ordering to meta options, included docs and tests 2010-01-07 23:08:33 -06:00
blackbrrr
2a7fc03e79 fixed merge conflict in queryset.py, used hmarr's code 2010-01-07 20:23:11 -06:00
blackbrrr
a6d64b2010 added meta support for indexes ensured at call-time 2010-01-07 23:28:10 +08:00
Harry Marr
2e74c93878 Minor bugfixes 2010-01-07 15:24:52 +00:00
Harry Marr
557fb19d13 Query values may be processed before being used 2010-01-06 03:14:21 +00:00
blackbrrr
ccb4827ec9 added meta support for indexes ensured at call-time 2010-01-05 14:28:24 -06:00
Harry Marr
4ae21a671d Document dict access now only looks for fields 2010-01-05 19:37:30 +00:00
blackbrrr
bb4444f54d Merge branch 'master' of git://github.com/hmarr/mongoengine 2010-01-05 12:00:07 -06:00
Harry Marr
6363b6290b Added capped collections support 2010-01-04 03:33:42 +00:00
Harry Marr
b01596c942 Made field validation lazier 2010-01-03 22:37:55 +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
blackbrrr
8ad0df41a0 merged hmarr's updates 2009-12-19 14:31:17 -06:00
Harry Marr
9d12dbad70 Made _cls etc optional, merged sort to order_by 2009-12-19 02:33:01 +00:00
blackbrrr
c58f377a0a removed reliance on '_cls' in document; fields only parsed if '__class__' present, allowing inner classes and non-field attributes on a document 2009-12-19 08:53:52 +08:00
blackbrrr
12a7fc1af1 removed reliance on '_cls' in document; fields only parsed if '__class__' present, allowing inner classes and non-field attributes on a document 2009-12-18 11:34:32 -06: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
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
3017dc78ed Renamed project to mongoengine 2009-11-21 18:41:10 +00:00