aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2012-05-02 13:34:53 +0200
committercedricbonhomme <devnull@localhost>2012-05-02 13:34:53 +0200
commit2f49ea24027af4069458c9b47e4b4e252222da30 (patch)
treec545d8fb44cd51071beefc820a22ba75cf8a6312 /source
parentVersion 3.4 of pyAggr3g470r. Export functions working with MongoDB. Minor bug... (diff)
downloadnewspipe-2f49ea24027af4069458c9b47e4b4e252222da30.tar.gz
newspipe-2f49ea24027af4069458c9b47e4b4e252222da30.tar.bz2
newspipe-2f49ea24027af4069458c9b47e4b4e252222da30.zip
Connection on the MongoDB database with authentication OK.
Diffstat (limited to 'source')
-rwxr-xr-xsource/cfg/pyAggr3g470r.cfg-sample4
-rw-r--r--source/mongodb.py2
-rwxr-xr-xsource/pyAggr3g470r.py2
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")
bgstack15