a4c5fa57e0updated notes in map_reduce_advanced queryset test
blackbrrr
2010-02-12 15:53:28 -06:00
9be6c41af7map/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;
blackbrrr
2010-02-12 14:39:08 -06:00
5c311eefb1fixed merge conflict in queryset test
blackbrrr
2010-02-12 09:59:09 -06:00
d0ceb74a2eremoved unused fields and tests
blackbrrr
2010-02-12 09:57:09 -06:00
ea1fe6a538Fixed set/unset issue with ListFields
Harry Marr
2010-02-12 11:21:51 +00:00
b2588d1c4fChanged neq to ne, fixed Q object in and nin
Harry Marr
2010-02-10 12:35:41 +00:00
69d3e0c4b6added 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'.
blackbrrr
2010-02-09 14:56:15 -06:00
755deb3ffeAdded DictField
Harry Marr
2010-02-03 01:22:25 +00:00
59f8c9f38emake mongoengine more international :) using unicode-strings; str(err) raises errors if it contains non-ascii chars/umlauts
Florian Schlachter
2010-02-02 21:48:47 +01:00
0bbf3a3d76Fixed EmbeddedDocument validation bug
Harry Marr
2010-02-02 17:37:09 +00:00
10de19d38bbe 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 Schlachter
2010-01-31 18:06:25 +01:00
73aff806f3reset to master, keep working on the dirty-fields-patch in another branch
Florian Schlachter
2010-01-31 18:00:01 +01:00
bbfc2f416ekeep track of dirty fields is still work in progress; EmbeddedDocuments still aren't tracked (TBD)
Florian Schlachter
2010-01-31 15:43:40 +01:00
e05d31eaafAdded get{,_or_create} docs
Harry Marr
2010-01-31 13:47:27 +00:00
ffc9d7b152Merge branch 'master' of git://github.com/flosch/mongoengine Added unit test for get_or_create, merged flosch's get with punteney's get.
Harry Marr
2010-01-31 13:24:50 +00:00
79604180dbMerge branch 'master' of git://github.com/punteney/mongoengine
Harry Marr
2010-01-31 13:11:20 +00:00
7d6e117f68added get-method to fetch exactly one document from the collection. catching pymongo's ObjectId-errors and raising mongoengine's ValidationError instead.
Florian Schlachter
2010-01-31 01:11:37 +01:00
2585f1b724queryset_manager funcs now accept doc as arg
Harry Marr
2010-01-23 17:16:01 +00:00
470e08f616exec_js functions now acknowledge Q objects
Harry Marr
2010-01-23 03:05:27 +00:00
f1e51f9708Merge branch 'master' of git://github.com/hmarr/mongoengine into deferred_fields
blackbrrr
2010-01-19 12:27:14 -06:00
e0becc109dAdding tests to test the get query
James Punteney
2010-01-16 14:51:13 -05:00
47e4dd40cdMaking the query actually get called for get
James Punteney
2010-01-16 13:24:10 -05:00
c38faebc25Adding a get method to the queryset that raises exceptions if more or less than one item is returned
James Punteney
2010-01-16 13:21:16 -05:00