Deepak Thukral
df8f4e7251
no message in expection in future version of python
2010-03-11 20:42:27 +01:00
Harry Marr
95a7b33fb4
Changed how GenericReferenceFields are stored / queried
2010-02-28 23:15:21 +00:00
Harry Marr
81dd5adccf
GenericReferenceField docs
2010-02-28 21:30:54 +00:00
blackbrrr
03d31b1890
added global model registry and GenericReferenceField, a ReferenceField not bound to a particular model
2010-02-26 16:59:12 -06:00
Deepak Thukral
90d9bd9723
added natural object comparision
2010-02-21 12:13:58 +01:00
blackbrrr
348f7b5dfc
merged master, fixed 1 merge conflict
2010-02-14 17:23:38 -06:00
Harry Marr
ea1fe6a538
Fixed set/unset issue with ListFields
2010-02-12 11:21:51 +00:00
blackbrrr
c4513f0286
merged master
2010-02-11 15:43:37 -06:00
Florian Schlachter
73aff806f3
reset to master, keep working on the dirty-fields-patch in another branch
2010-01-31 18:00:01 +01:00
Florian Schlachter
963a223e7e
Merge remote branch 'hmarr/master'
...
Conflicts:
mongoengine/queryset.py
2010-01-31 17:43:56 +01:00
Florian Schlachter
431f006751
new save() method updates only dirty fields. fixes issue #18
2010-01-31 14:40:00 +01: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
Florian Schlachter
7d6e117f68
added get-method to fetch exactly one document from the collection. catching pymongo's ObjectId-errors and raising mongoengine's ValidationError instead.
2010-01-31 01:11:37 +01: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
blackbrrr
f1e51f9708
Merge branch 'master' of git://github.com/hmarr/mongoengine into deferred_fields
2010-01-19 12:27:14 -06:00
Harry Marr
3357b55fbf
Indexing on ListFields now works properly
2010-01-16 15:35:01 +00:00
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