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().
This commit is contained in:
Steve Challis
2010-06-03 03:53:39 +08:00
committed by Florian Schlachter
parent 196606438c
commit 0512dd4c25
3 changed files with 146 additions and 1 deletions

View File

@@ -64,3 +64,5 @@ Fields
.. autoclass:: mongoengine.ReferenceField
.. autoclass:: mongoengine.GenericReferenceField
.. autoclass:: mongoengine.FileField