lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Feature request: allow subclasses of couchdb.schema.Document control over their couchdb ID (i.e. PUT not POST) #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently subclasses of couchdb.schema.Document have to accept the CouchDB
id that's given to them; Document.store calles Database.create, which is
hard coded to POST to couchdb, meaning that couchdb generates an ID.

Need to have control over the ID e.g. if I define a property called id for
my subclass of Document, it's value is used to PUT to couchdb.

Original issue reported on code.google.com by hfue...@gmail.com on 17 May 2008 at 8:54

GoogleCodeExporter commented 8 years ago
As of r94 you can now pass the ID as keyword argument to the Document subclass 
constructor, or just set the 
property on new documents (i.e. as long as it's not set).

Original comment by cmlenz on 21 Jul 2008 at 9:07

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 50ab1c9eff.

Original comment by djc.ochtman on 3 Dec 2009 at 9:51