summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-04-15 19:50:50 +0000
committerIsis Lovecruft <isis@torproject.org>2013-04-15 19:52:13 +0000
commit07488a8d4c4aea1f7c86cd13219ee37ec8b46850 (patch)
treeb5fbe025c43f1d28f1e73fb8a2b4a64f67f30d88
parentf69a085cfe9d904404cb421e802515b716cfbf9c (diff)
Add default CouchDB port to couchdb.ConnectCouchDB parameters.
-rw-r--r--src/leap/mx/couchdb.py5
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,