a4c5fa57e0
updated notes in map_reduce_advanced queryset test
blackbrrr2010-02-12 15:53:28 -06:00
9be6c41af7
map/reduce result objects now only have 'key', 'value', and 'object' properties; MapReduceDocument.key_object now returns proper Document subclass; added finalize with Reddit ranking simulation; MapReduceDocuments now yielded;
blackbrrr2010-02-12 14:39:08 -06:00
5c311eefb1
fixed merge conflict in queryset test
blackbrrr2010-02-12 09:59:09 -06:00
d0ceb74a2e
removed unused fields and tests
blackbrrr2010-02-12 09:57:09 -06:00
ea1fe6a538
Fixed set/unset issue with ListFields
Harry Marr2010-02-12 11:21:51 +00:00
b2588d1c4f
Changed neq to ne, fixed Q object in and nin
Harry Marr2010-02-10 12:35:41 +00:00
69d3e0c4b6
added map/reduce support via QuerySet.map_reduce. map_reduce operations respect query specs and ordering, but ordering is currently only applied to map/reduce collection. map/reduce may eventually require its own QuerySet to avoid slicing conflicts. results are returned as lists of MapReduceDocument objects, dynamic objects representing the query. tests and documentation included. considered in the neighborhood of 'good start'.
blackbrrr2010-02-09 14:56:15 -06:00
59f8c9f38e
make mongoengine more international :) using unicode-strings; str(err) raises errors if it contains non-ascii chars/umlauts
Florian Schlachter2010-02-02 21:48:47 +01:00
0bbf3a3d76
Fixed EmbeddedDocument validation bug
Harry Marr2010-02-02 17:37:09 +00:00
10de19d38b
be kind and also accept an integer for a float field (so e.g. mymodel.floatfield = 9 is possible, instead of mymodel.floatfield = 9.0)
Florian Schlachter2010-01-31 18:06:25 +01:00
73aff806f3
reset to master, keep working on the dirty-fields-patch in another branch
Florian Schlachter2010-01-31 18:00:01 +01:00
bbfc2f416e
keep track of dirty fields is still work in progress; EmbeddedDocuments still aren't tracked (TBD)
Florian Schlachter2010-01-31 15:43:40 +01:00
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.
Harry Marr2010-01-31 13:24:50 +00:00
79604180db
Merge branch 'master' of git://github.com/punteney/mongoengine
Harry Marr2010-01-31 13:11:20 +00:00
7d6e117f68
added get-method to fetch exactly one document from the collection. catching pymongo's ObjectId-errors and raising mongoengine's ValidationError instead.
Florian Schlachter2010-01-31 01:11:37 +01:00
47e4dd40cd
Making the query actually get called for get
James Punteney2010-01-16 13:24:10 -05:00
c38faebc25
Adding a get method to the queryset that raises exceptions if more or less than one item is returned
James Punteney2010-01-16 13:21:16 -05:00