Skip to content

Commit

Permalink
fix __repr__ method (was on the Server object instead of the Database…
Browse files Browse the repository at this point in the history
… object)
  • Loading branch information
namlook@nichjo committed Apr 22, 2009
1 parent 11e3139 commit 53f1320
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions couchdbkit/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ def __init__(self, uri='http://127.0.0.1:5984', uuid_batch_count=DEFAULT_UUID_BA
self.res = CouchdbResource(uri, transport=transport)
self.uuids = []

def __repr__(self):
return "<%s %s>" % (self.__class__.__name__, self.dbname)

def info(self):
""" info of server
:return: dict
Expand Down Expand Up @@ -142,6 +139,9 @@ def __init__(self, server, dbname):
self.server = server
self.res = server.res.clone()
self.res.update_uri('/%s' % dbname)

def __repr__(self):
return "<%s %s>" % (self.__class__.__name__, self.dbname)

@classmethod
def from_uri(cls, uri, dbname, uuid_batch_count=DEFAULT_UUID_BATCH_COUNT,
Expand Down

0 comments on commit 53f1320

Please sign in to comment.