From 8941e6d5b12010df88bcfe41bff46f3a96987fd3 Mon Sep 17 00:00:00 2001 From: cedricbonhomme Date: Wed, 2 May 2012 15:37:13 +0200 Subject: Authentication to the MongoDB database when retrieving feeds. --- source/conf.py | 6 +++--- source/feedgetter.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/conf.py b/source/conf.py index 60289315..9f6724d5 100644 --- a/source/conf.py +++ b/source/conf.py @@ -39,8 +39,8 @@ path = os.path.abspath(".") MONGODB_ADDRESS = config.get('MongoDB', 'address') MONGODB_PORT = int(config.get('MongoDB', 'port')) -MONGODB_USER = config.get('MongoDB', 'user') -MONGODB_PASSWORD = config.get('MongoDB', 'password') +#MONGODB_USER = config.get('MongoDB', 'user') +#MONGODB_PASSWORD = config.get('MongoDB', 'password') mail_from = config.get('mail','mail_from') mail_to = config.get('mail','mail_to') @@ -48,4 +48,4 @@ smtp_server = config.get('mail','smtp') username = config.get('mail','username') password = config.get('mail','password') -DIASPORA_POD = config.get('misc', 'diaspora_pod') \ No newline at end of file +DIASPORA_POD = config.get('misc', 'diaspora_pod') diff --git a/source/feedgetter.py b/source/feedgetter.py index 59322e6a..a9cdaf3e 100755 --- a/source/feedgetter.py +++ b/source/feedgetter.py @@ -50,7 +50,7 @@ class FeedGetter(object): Initializes the base and variables. """ # MongoDB connections - self.articles = mongodb.Articles() + self.articles = mongodb.Articles(conf.MONGODB_ADDRESS, conf.MONGODB_PORT) def retrieve_feed(self): """ @@ -160,4 +160,4 @@ class FeedGetter(object): if __name__ == "__main__": # Point of entry in execution mode feed_getter = FeedGetter() - feed_getter.retrieve_feed() \ No newline at end of file + feed_getter.retrieve_feed() -- cgit