Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Conversation

kxepal
Copy link
Contributor

@kxepal kxepal commented Mar 22, 2014

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
Copy link

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

@garbados garbados closed this Mar 24, 2014
@garbados
Copy link

Reopen sesame!

@garbados garbados reopened this Mar 24, 2014
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 added a commit that referenced this pull request Mar 24, 2014
Move session, login and logout methods from Resource to Account
@garbados garbados merged commit cab218b into cloudant-labs:master Mar 24, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants