cloudant-labs / cloudant-python

Asynchronous Cloudant / CouchDB interface for Python
http://cloudant-labs.github.io/cloudant-python/
37 stars 17 forks source link

Move session, login and logout methods from Resource to Account #35

Closed kxepal closed 10 years ago

kxepal commented 10 years ago

It's a bit awkward to have the code:

db = cloudant.Database(url) doc = db.document(docid) doc.login('username', 'password')

Since these methods are not related to document nor database resources. Account as holder of server root endpoint method is more suitable place for them.

garbados commented 10 years ago

That makes sense. I used the big green button on another PR so I'll merge this manually. Thanks!

garbados commented 10 years ago

Reopen sesame!