-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
Setting an attribute on an open GridIn object doesn't update the document on the server unless it is named "filename" or "content_type". Other attributes appear to be settable on open GridIn objects but aren't sent to the server when the GridIn is closed.
db = Connection().test gin1 = GridIn(db.fs, _id=1) gin1.quux = 'fizzle' gin1.close() gin2 = GridIn(db.fs, _id=2) gin2.close() gin2.quux = 'fizzle' list(db.fs.files.find({'_id': {'$in': [1, 2]}}, {'quux': True}))
Expected:
[{u'_id': 1, u'quux': u'fizzle'}, {u'_id': 2, u'quux': u'fizzle'}]
Actual:
[{u'_id': 1}, {u'_id': 2, u'quux': u'fizzle'}]