-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 3.0.3
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The public member function 'update_one' of class 'Collection' does not accept a 'manipulate' parameter. 'Update_one' calls the private member function '_update' which has a parameter 'manipulate' (defaults to False).
This manipulate parameter allows for custom 'son_manipulators' to be run to decode/encode custom objects (like python's datetime.date which is not supported out-of-the-box by bson). Because we are unable to set the manipulate parameter to True, we are unable to create custom encodings for objects added to a database via calls to 'update_one'.
It is worth noting that the 'update' function (now deprecated) used to support the 'manipulate' parameter...on a side note, there should be out-of-the-box logic to encode/decode datetime.date objects, and not just datetime.datetime...