[PYCBC-45] Remove Couchbase.save({'_id':'key', 'json':'doc'}) in favor of .set() doing key name detection Created: 24/Jul/12  Updated: 30/Aug/12  Resolved: 30/Aug/12

Status: Resolved
Project: Couchbase Python Client Library
Component/s: None
Affects Version/s: None
Fix Version/s: 0.8.0
Security Level: Public

Type: Improvement Priority: Major
Reporter: Benjamin Young Assignee: Benjamin Young
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

It seems .save() was added to do some special handling (_design/doc PUTing). It leans on doc._id which is going away in 2.0, so it "smells" if nothing else.

Additionally, leaning on .set() and cb['bucket']['key'] = 'value' for the API will give us great consistency and less confusion.

.save() should be deprecated
.set() should use JSON by default
.set() should handle keys named '_design/(*)' via the HTTP API

Comment by Benjamin Young [ 30/Aug/12 ]
Generated at Mon Oct 20 05:48:16 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.