Vincent Driessen
07dae64d66
More the deletion code over to the QuerySet object.
...
The Document object doens't have any delete_rule specific code anymore,
and leverages the QuerySet's ability to deny/cascade/nullify its
relations.
2010-12-13 12:36:24 -08:00
Vincent Driessen
3c98a4bff5
Remove accidentally left behind debugging message.
2010-12-06 00:07:30 -08:00
Vincent Driessen
b06d794854
Implementation of DENY rules.
2010-12-05 23:43:19 -08:00
Vincent Driessen
d21434dfd6
Make the nullification an atomic operation.
...
This shortcut works now, since hmarr fixed the unset bug in dev.
2010-12-05 22:41:16 -08:00
Vincent Driessen
dd21ce9eac
Initial implementation of the NULLIFY rule.
2010-12-05 22:24:27 -08:00
Vincent Driessen
bba3aeb4fa
Actually *use* the register_delete_rule classmethod, since it's there.
2010-12-05 22:24:27 -08:00
Vincent Driessen
86233bcdf5
Added initial implementation of cascading document deletion.
...
The current implementation is still very basic and needs some polish.
The essence of it is that each Document gets a new meta attribute called
"delete_rules" that is a dictionary containing (documentclass,
fieldname) as key and the actual delete rule as a value. (Possible
values are DO_NOTHING, NULLIFY, CASCADE and DENY. Of those, only
CASCADE is currently implented.)
2010-12-05 22:24:27 -08:00
Vincent Driessen
67fcdca6d4
Fix: PyFlakes pointed out this missing import.
2010-12-05 22:24:27 -08:00
Harry Marr
3a0523dd79
Fixed issue with unset operation
2010-12-05 21:43:04 +00:00
Harry Marr
c6058fafed
Merge branch 'dev' of github.com:hmarr/mongoengine into dev
2010-11-02 13:44:19 +00:00
Harry Marr
11950eabea
Merge branch 'master' of http://github.com/aleszoulek/mongoengine into dev
2010-11-02 13:43:33 +00:00
Harry Marr
6b880aa8b3
Fixed order-then-filter issue
2010-11-01 00:43:30 +00:00
Ales Zoulek
a3830be4c9
QuerySet.only() supports subfields + tests
2010-10-28 01:13:24 +02:00
Rached Ben Mustapha
18baa2dd7a
fix calling a queryset after skip and limit have been set
2010-10-19 22:40:36 +00:00
Harry Marr
2b9c526b47
Merge branch 'v0.4' of http://github.com/schallis/mongoengine into v0.4
2010-10-18 13:55:57 +01:00
Steve Challis
d7c42861fb
Minor GridFS corrections
2010-10-18 10:25:06 +01:00
Harry Marr
e9d478ed9f
Merge branch 'master' of http://github.com/cyberdelia/mongoengine into v0.4
2010-10-18 10:22:56 +01:00
Steve Challis
67736c849d
Finished GridFS Documentation
...
* Also made GridFS replace test pass
2010-10-18 00:55:44 +01:00
Steve Challis
39e27735cc
Merge branch 'v0.4' of git://github.com/hmarr/mongoengine into v0.4
...
Conflicts:
docs/changelog.rst
mongoengine/base.py
mongoengine/queryset.py
2010-10-17 23:48:20 +01:00
Harry Marr
0902b95764
Added support for recursive embedded documents
2010-10-18 00:27:40 +01:00
Steve Challis
dc7181a3fd
Begun GridFS documentation
2010-10-17 23:43:58 +01:00
Harry Marr
e93c4c87d8
Fixed inheritance collection issue
2010-10-17 17:41:20 +01:00
Harry Marr
dcec61e9b2
Raise AttributeError when necessary on QuerySet[]
2010-10-17 16:36:22 +01:00
Harry Marr
007f116bfa
Increment version to 0.4
2010-10-17 15:42:31 +01:00
Harry Marr
6817f3b7ba
Updated docs for v0.4
2010-10-17 15:40:49 +01:00
Harry Marr
36993029ad
Removed old Q-object implementation
2010-10-17 14:22:45 +01:00
Harry Marr
012352cf24
Added snapshot and timeout methods to QuerySet
2010-10-17 14:21:55 +01:00
Harry Marr
3591593ac7
Fixed GenericReferenceField query issue
2010-10-17 13:55:48 +01:00
Harry Marr
d3c2dfbaee
Merge branch 'master' of http://github.com/ixc/mongoengine into v0.4
...
Conflicts:
mongoengine/fields.py
mongoengine/queryset.py
2010-10-17 13:54:16 +01:00
Harry Marr
b2b4456f74
Merge branch 'new-q-objects' into v0.4
2010-10-17 13:42:29 +01:00
Harry Marr
92471445ec
Fix changing databases
...
Conflicts:
mongoengine/connection.py
mongoengine/queryset.py
2010-10-05 00:46:13 +01:00
Harry Marr
3acfd90720
Added some imports for PyMongo 1.9 compatibility.
2010-10-04 14:58:00 +01:00
Harry Marr
4742328b90
Delete stale cursor when query is filtered. Closes #62 .
2010-10-04 12:11:01 +01:00
Harry Marr
b4c54b1b62
Added support for the $not operator
2010-10-04 11:41:49 +01:00
Harry Marr
76cb851c40
Replaced old Q-object with new, revamped Q-object
2010-10-04 11:41:07 +01:00
Harry Marr
3fcc0e9789
Combining OR nodes works, fixed other Q-object bugs
2010-10-04 02:10:37 +01:00
Harry Marr
8e65154201
Added a tree transformer, got complex ANDs working
2010-10-04 00:06:42 +01:00
Harry Marr
c0f7c4ca2d
Fixed error in empty property on QCombination
2010-10-03 23:22:36 +01:00
Harry Marr
db2f64c290
Made query-tree code a bit clearer
2010-10-03 23:01:44 +01:00
Harry Marr
a3c46fec07
Compilation of combinations - simple $or now works
2010-10-03 21:26:26 +01:00
Harry Marr
62388cb740
Started work on new Q-object implementation
2010-10-03 21:08:28 +01:00
Timothée Peignier
9c9903664a
add support for pk property in documents and filters
2010-10-03 18:50:35 +02:00
Harry Marr
556eed0151
QuerySet.distinct respects query. Closes #64 .
2010-10-03 15:22:47 +01:00
Harry Marr
4012722a8d
QuerySet.item_frequencies works with non-list fields
2010-10-03 15:01:45 +01:00
Harry Marr
4c68bc6c96
Merge branch 'master' of http://github.com/sibsibsib/mongoengine into v0.4
...
Conflicts:
mongoengine/queryset.py
tests/queryset.py
2010-10-03 01:57:22 +01:00
Harry Marr
159923fae2
Made lists of recursive reference fields possible
2010-10-03 01:48:42 +01:00
sib
2c8f004103
added update operator for addToSet
2010-09-30 02:53:44 -03:00
Steve Challis
67a9b358a0
Merge branch 'v0.4' of git://github.com/hmarr/mongoengine into v0.4
2010-09-29 23:39:09 +01:00
Steve Challis
b5eb3ea1cd
Added a Django storage backend.
...
- New GridFSStorage storage backend
- New FileDocument document for storing files in GridFS
- Whitespace cleaned up in various files
2010-09-29 23:36:58 +01:00
Harry Marr
98bc0a7c10
Raise AttributeError when necessary on GridFSProxy
2010-09-25 22:47:09 +01:00