diff options
author | cedricbonhomme <devnull@localhost> | 2012-05-02 15:37:13 +0200 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2012-05-02 15:37:13 +0200 |
commit | 8941e6d5b12010df88bcfe41bff46f3a96987fd3 (patch) | |
tree | 84884b1e7c87ab0c70eba6982266ad27a0b6f752 | |
parent | Connection on the MongoDB database with authentication OK. (diff) | |
download | newspipe-8941e6d5b12010df88bcfe41bff46f3a96987fd3.tar.gz newspipe-8941e6d5b12010df88bcfe41bff46f3a96987fd3.tar.bz2 newspipe-8941e6d5b12010df88bcfe41bff46f3a96987fd3.zip |
Authentication to the MongoDB database when retrieving feeds.
-rw-r--r-- | source/conf.py | 6 | ||||
-rwxr-xr-x | source/feedgetter.py | 4 |
2 files changed, 5 insertions, 5 deletions
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() |