diff options
author | Isis Lovecruft <isis@torproject.org> | 2013-04-15 19:50:50 +0000 |
---|---|---|
committer | Isis Lovecruft <isis@torproject.org> | 2013-04-15 19:52:13 +0000 |
commit | 07488a8d4c4aea1f7c86cd13219ee37ec8b46850 (patch) | |
tree | b5fbe025c43f1d28f1e73fb8a2b4a64f67f30d88 /src | |
parent | f69a085cfe9d904404cb421e802515b716cfbf9c (diff) |
Add default CouchDB port to couchdb.ConnectCouchDB parameters.
Diffstat (limited to 'src')
-rw-r--r-- | src/leap/mx/couchdb.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/leap/mx/couchdb.py b/src/leap/mx/couchdb.py index c020295..f63d2f0 100644 --- a/src/leap/mx/couchdb.py +++ b/src/leap/mx/couchdb.py @@ -31,7 +31,7 @@ class ConnectedCouchDB(client.CouchDB): CouchDB document for testing is '_design', and the view is simply a preconfigured set of mapped responses. """ - def __init__(self, host, port, dbName=None, username=None, + def __init__(self, host, port=5984, dbName=None, username=None, password=None, *args, **kwargs): """ Connect to a CouchDB instance. @@ -44,7 +44,8 @@ class ConnectedCouchDB(client.CouchDB): @returns: A :class:`twisted.internet.defer.Deferred` representing the the client connection to the CouchDB instance. """ - super(client.CouchDB, self).__init__(host, port, + super(client.CouchDB, self).__init__(host, + port=port, dbName=dbName, username=username, password=password, |