Commit Graph
1015 Commits
Author SHA1 Message Date
Nicolas Perriault 449f5a00dc added a 'validate' option to Document.save() +docs +tests 2010-09-11 17:45:57 +02:00
Harry Marr 5b230b90b9 Doc fix (all operator) 2010-08-30 15:34:29 +01:00
Harry Marr 3297578e8d Merge branch 'master' of http://github.com/richardhenry/mongoengine into v0.4 2010-08-30 13:57:42 +01:00
Richard Henry 7de9adc6b1 Adding support for pop operations to QuerySet.update and QuerySet.update_one 2010-08-28 09:36:25 +01:00
Florian Schlachter 323c86308a Merge remote branch 'hmarr/v0.4'
Conflicts:
	mongoengine/fields.py
	tests/fields.py
2010-07-19 01:11:28 +02:00
Florian Schlachter 9596a25bb9 Fixed documentation bug. 2010-07-19 00:56:16 +02:00
Steve ChallisandFlorian Schlachter 47bfeec115 Tidied code, added replace() method to FileField 2010-07-19 06:53:21 +08:00
Steve ChallisandFlorian Schlachter 0512dd4c25 Added new FileField with GridFS support
The API is similar to that of PyMongo and most of the same operations are
possible.

The FileField can be written too with put(), write() or by using the assignment
operator. All three cases are demonstrated in the tests. Metadata can be added
to a FileField by assigning keyword arguments when using put() or new_file().
2010-07-19 06:52:11 +08:00
Harry Marr c2163ecee5 Added test for Geo indexes 2010-07-07 15:12:14 +01:00
Harry Marr 71689fcf23 Got within_box working for Geo fields 2010-07-07 15:00:46 +01:00
Harry Marr 6896818bfd Added docs for exact, iexact 2010-05-30 17:40:01 +01:00
Harry Marr 467e61bcc1 Documentation fix 2010-05-28 02:28:42 +01:00
Florian Schlachter 682326c130 documentation bug fixed 2010-04-30 18:04:58 +02:00
Florian Schlachter 416fcba846 Merge remote branch 'hmarr/master'
Conflicts:
	mongoengine/base.py
2010-04-17 01:42:26 +02:00
Florian Schlachter 48facec524 Fixes tiny documentation error. Adds possibility to add custom validation methods to fields, e. g.:
class Customer(Document):
        country = StringField(validation=lambda value: value in ['DE', 'AT', 'CH'])

Replaced some str() with unicode() for i18n reasons.
2010-04-16 16:59:34 +02:00
Don Spaulding e9c92f30ba Add description of each of the keyword arguments to BaseField.__init__(), adds description for choices too. 2010-04-15 17:57:23 -05:00
Don Spaulding da3f4c30e2 Fix doc typos 2010-04-14 22:40:56 -05:00
Timothée PeignierandHarry Marr a39685d98c make get_or_create returns a tuple with the retrieved or created object and a boolean specifying whether a new object was created 2010-04-12 16:21:29 +01:00
Harry Marr 00c8d7e6f5 Bump to v0.3 2010-03-17 16:50:13 +00:00
Harry Marr 25a0a5364a Deprecated 'name' arg for fields in favour of 'db_field' 2010-03-17 13:47:23 +00:00
blackbrrr 0c1e5da9a8 added mongoengine.MapReduceDocument to api ref 2010-03-17 00:50:07 -05:00
blackbrrr 0b62c9d2f6 Merge branch 'master' of git://github.com/hmarr/mongoengine 2010-03-17 00:34:00 -05:00
blackbrrr 22a6ec7794 merged conflicts 2010-03-09 15:19:14 -06:00
Harry Marr d7086fc4a3 Added rewind behaviour and BinaryField to docs 2010-03-08 22:23:40 +00:00
Harry Marr 53c0cdc0c1 Added recursive and undefined document ref docs 2010-02-28 23:29:42 +00:00
Harry Marr 81dd5adccf GenericReferenceField docs 2010-02-28 21:30:54 +00:00
Harry Marr 4451843a39 Added docs for QuerySet.only 2010-02-28 17:52:29 +00:00
Harry Marr 719a653375 Added match operator docs 2010-02-26 13:48:00 +00:00
Harry Marr ab2d019349 Added server-side js docs 2010-02-26 13:23:15 +00:00
blackbrrr 5c311eefb1 fixed merge conflict in queryset test 2010-02-12 09:59:09 -06:00
blackbrrr 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'. 2010-02-09 14:56:15 -06:00
Harry Marr 755deb3ffe Added DictField 2010-02-03 01:22:25 +00:00
Harry Marr e05d31eaaf Added get{,_or_create} docs 2010-01-31 13:47:27 +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 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 e7380e3676 Bump to v0.2.1 2010-01-11 16:14:03 +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 ec927bdd63 Added support for user-defined primary keys (_ids) 2010-01-10 17:13:56 +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
blackbrrr 9195d96705 added default ordering to meta options, included docs and tests 2010-01-07 23:08:33 -06:00
Harry Marr 960aea2fd4 Added indexes and Django use to docs 2010-01-07 23:54:57 +00:00
Harry Marr b7e8108edd Added docs about using MongoEngine with Django 2010-01-07 22:48:39 +00:00
Harry Marr f86496b545 Bump to v0.1.2 2010-01-06 03:23:02 +00:00
Harry Marr 196f4471be Made connection lazy 2010-01-06 00:41:56 +00:00