From 2f49ea24027af4069458c9b47e4b4e252222da30 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Wed, 2 May 2012 13:34:53 +0200 Subject: Connection on the MongoDB database with authentication OK. --- source/cfg/pyAggr3g470r.cfg-sample | 4 +--- source/mongodb.py | 2 +- source/pyAggr3g470r.py | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/source/cfg/pyAggr3g470r.cfg-sample b/source/cfg/pyAggr3g470r.cfg-sample index e0be2975..57b1627a 100755 --- a/source/cfg/pyAggr3g470r.cfg-sample +++ b/source/cfg/pyAggr3g470r.cfg-sample @@ -1,8 +1,6 @@ [MongoDB] -address = 127.0.0.1 +address = mongodb://username:password@127.0.0.1:27017 port = 27017 -user = username -password = pwd [mail] mail_from = pyAggr3g470r@no-reply.com mail_to = address_of_the_recipient@example.com diff --git a/source/mongodb.py b/source/mongodb.py index 4d8574cd..727d8183 100644 --- a/source/mongodb.py +++ b/source/mongodb.py @@ -246,4 +246,4 @@ if __name__ == "__main__": # Drop the database - articles.drop_database() \ No newline at end of file + articles.drop_database() diff --git a/source/pyAggr3g470r.py b/source/pyAggr3g470r.py index aeaf4822..7b16ed18 100755 --- a/source/pyAggr3g470r.py +++ b/source/pyAggr3g470r.py @@ -1228,4 +1228,4 @@ if __name__ == '__main__': cherrypy.config.update({'error_page.404': error_page_404}) _cp_config = {'request.error_response': handle_error} - cherrypy.quickstart(root, "/" ,config=conf.path + "/cfg/cherrypy.cfg") \ No newline at end of file + cherrypy.quickstart(root, "/" ,config=conf.path + "/cfg/cherrypy.cfg") -- cgit