From 07488a8d4c4aea1f7c86cd13219ee37ec8b46850 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Mon, 15 Apr 2013 19:50:50 +0000 Subject: Add default CouchDB port to couchdb.ConnectCouchDB parameters. --- src/leap/mx/couchdb.py | 5 +++-- 1 file 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, -- cgit v1.2.3