lanto03 / couchdb-python

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

Document class should be able to handle put_attachment #94

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a subclass MyDocument of Document.
2. Create an instance of MyDocument
3. call db.put_attachment with instance as first argument

What is the expected output? What do you see instead?
The put_attachment call should succeed

What version of the product are you using? On what operating system?
AttributeError 'MyDocument' object has no attribute 'update'

Please provide any additional information below.

Original issue reported on code.google.com by peter.h4...@gmail.com on 4 Oct 2009 at 7:19

GoogleCodeExporter commented 8 years ago
I don't really understand this error report. Firstly, it doesn't look like the 
document created in step 2 is ever added to the database. Secondly, I can't see 
any reason why put_attachment would try to access MyDocument.update. 

However, at least 4 people are interested in this so I'm obviously missing 
something obvious ;-).

Can someone post some actual failing code that demonstrates the problem. Thanks!

Original comment by matt.goo...@gmail.com on 8 Jul 2010 at 9:02

GoogleCodeExporter commented 8 years ago
Since there's been no response here, I'll close this for now.

Original comment by djc.ochtman on 22 Dec 2010 at 12:04