From eb308a35f77013c1679a86fbe8de15ee4657f8ef Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 19 Mar 2013 07:52:27 +0100 Subject: Added authentication to the MongoDB database for testbinarytree script. --- source/testbinarytree.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/testbinarytree.py b/source/testbinarytree.py index 0d637758..d60df372 100644 --- a/source/testbinarytree.py +++ b/source/testbinarytree.py @@ -9,9 +9,12 @@ sys.setrecursionlimit(10**6) import mongodb import binarytree +import conf print("Loading articles from the database...") -database = mongodb.Articles() +database = mongodb.Articles(conf.MONGODB_ADDRESS, conf.MONGODB_PORT, \ + conf.MONGODB_DBNAME, conf.MONGODB_USER, \ + conf.MONGODB_PASSWORD) begin = time.time() articles = database.get_articles() end = time.time() -- cgit