Commit Graph
363 Commits
Author SHA1 Message Date
Florian Schlachter c39f315ddc Merge remote branch 'hmarr/v0.4' 2010-08-30 18:38:12 +02:00
Harry Marr 5b230b90b9 Doc fix (all operator) 2010-08-30 15:34:29 +01:00
Harry Marr 1ed9a36d0a Added test for pop operation 2010-08-30 14:02:02 +01:00
Florian Schlachter e0911a5fe0 Replaced slow exception handling with has_key. 2010-08-30 14:58:58 +02:00
Harry Marr 3297578e8d Merge branch 'master' of http://github.com/richardhenry/mongoengine into v0.4 2010-08-30 13:57:42 +01:00
Harry Marr 954d5c16d8 Merge branch 'master' of http://github.com/serverplot/mongoengine into v0.4 2010-08-30 13:56:28 +01:00
Florian Schlachter 95efa39b52 Added *.egg to .gitignore. 2010-08-30 14:56:18 +02:00
Florian Schlachter c27ccc91d2 Merge remote branch 'hmarr/v0.4'
Conflicts:
	tests/fields.py
2010-08-30 14:55:49 +02:00
Harry Marr 4fb6fcabef Added test for overriding objects 2010-08-30 13:54:20 +01:00
Harry Marr 2635e41f69 Merge branch 'master' of http://github.com/theojulienne/mongoengine into v0.4 2010-08-30 13:54:07 +01:00
Harry Marr ba01817ee3 Merge branch 'master' of http://github.com/vandersonmota/mongoengine into v0.4 2010-08-30 13:34:43 +01:00
Florian Schlachter 1e1d7073c8 Merge remote branch 'hmarr/v0.4'
Conflicts:
	tests/fields.py
2010-08-30 14:33:04 +02:00
Harry Marr 40eb23a97a Merge branch 'master' of git://github.com/flosch/mongoengine into v0.4
Conflicts:
	tests/fields.py
2010-08-30 13:21:10 +01:00
Harry Marr f4711699e4 Merge branch 'master' of http://github.com/danielhasselrot/mongoengine into v0.4
Conflicts:
	mongoengine/fields.py
2010-08-30 13:03:23 +01:00
Harry Marr 3b62cf80cd Fixed {Dict,List}Field default issue. Closes #46. 2010-08-30 13:00:34 +01:00
Harry Marr d99c5973c3 Fixed Q object DBRef test bug 2010-08-30 12:52:24 +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
sp 17addbefe2 made it more like Django's user model 2010-08-18 16:50:52 -04:00
Greg Turner d274576b47 Fixed premature return for query gen 2010-08-13 22:30:36 +10:00
Greg Turner 6373e20696 Better error reporting on a validation error for a list. 2010-08-13 22:28:26 +10:00
Greg Turner 809fe44b43 Added a __raw__ parameter for passing query dictionaries directly to pymongo 2010-08-12 15:14:20 +10:00
Greg Turner 198ccc028a made list queries work with regexes (e.g. istartswith) 2010-08-06 20:29:09 +10:00
Theo Julienne b96e27a7e4 Allow documents to override the 'objects' QuerySetManager 2010-07-30 22:09:00 +10:00
Timothée PeignierandFlorian Schlachter 1147ac4350 ignore virtualenv directory 2010-07-27 01:30:16 +08:00
flosch 21d267cb11 Now order_by() works like queries for referencing deeper fields (replacing . with __). old: order_by('mydoc.myattr') / new: order_by('mydoc__myattr'). Closes #45 2010-07-26 17:28:59 +02:00
flosch 6791f205af Style fix. 2010-07-26 16:50:09 +02:00
flosch 7ab2e21c10 Handle unsafe expressions when using startswith/endswith/contains with unsafe expressions. Closes #58 2010-07-26 16:42:10 +02:00
flosch 2f991ac6f1 Added all() method to get all document instances from a document. Extended the FileField's tests with testing on empty filefield. 2010-07-25 19:02:15 +02:00
flosch 9411b38508 Removed unnecessary comment. 2010-07-25 18:45:49 +02:00
flosch 386c48b116 Typo. 2010-07-25 18:43:11 +02:00
flosch 9d82911f63 Added tests for #46. 2010-07-25 18:38:24 +02:00
flosch 51065e7a4d Closes #46 by instantiating a new default instance for every field by request. 2010-07-25 18:33:33 +02:00
flosch 327452622e Handle DBRefs correctly within Q objects. Closes #55 2010-07-25 18:22:26 +02:00
flosch 13316e5380 Introduced new Document.objects.create, like django has. It creates a new object, saves it and returns the new object instance. 2010-07-25 17:35:09 +02:00
Harry Marr 9f98025b8c Added QuerySet.distinct. Closes #44. 2010-07-25 15:29:02 +01:00
Harry Marr 564f950037 Merge branch 'master' of git://github.com/flosch/mongoengine into v0.4 2010-07-25 15:09:45 +01:00
Harry Marr be651caa68 Removed a couple of sneaky print statements 2010-07-25 15:02:37 +01:00
Florian Schlachter aa00feb6a5 FileField's values are now optional. When no value is applied, no File object is created and referenced. 2010-07-20 22:46:00 +02:00
Florian Schlachter 03c0fd9ada Make default value of DictField an empty dict instead of None. 2010-07-19 19:01:53 +02:00
Daniel HasselrotandFlorian Schlachter 6093e88eeb Made list store empty list by default 2010-07-19 08:07:03 +08:00
Florian Schlachter ec519f20fa Makes the tests compatible to pymongo 1.7+. Not backwards compatible! 2010-07-19 01:32:28 +02:00
Florian Schlachter d3495896fa Merge branch 'master' of github.com:flosch/mongoengine 2010-07-19 01:12:16 +02: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
martinandFlorian Schlachter f9057e1a28 Fixed bug in FileField, proxy was not getting the grid_id set 2010-07-19 07:03:45 +08: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
martinandFlorian Schlachter 6bfd6c322b Fixed bug with GeoLocationField 2010-07-19 06:52:57 +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
Daniel Hasselrot acbc741037 Made list store empty list by default 2010-07-15 18:20:29 +02:00
Harry Marr c2163ecee5 Added test for Geo indexes 2010-07-07 15:12:14 +01:00