Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import couchdbkit
- database = couchdbkit.Server()["stats"]
- class productDoc(couchdbkit.Document):
- barcode = couchdbkit.StringProperty()
- productDoc.set_db(database)
- #these two both return a ViewResults object instead of the results
- a = productDoc.view("products/all", include_docs=True)[0]
- a = database.view("products/all", include_docs=True)[0]
Add Comment
Please, Sign In to add comment