diff options
author | Martin v. L?wis <martin@v.loewis.de> | 2012-08-23 09:47:38 +0200 |
---|---|---|
committer | Martin v. L?wis <martin@v.loewis.de> | 2012-08-23 09:47:38 +0200 |
commit | fe8cee82fbd8ba7e1bc19c0d3dce043bf981ac04 (patch) | |
tree | 7076221698d98fcbe45e18dca4242c14d377049c /config.py | |
parent | c775eeb2d4a849e929e1b58957f41eaa07889393 (diff) | |
download | decorator-fe8cee82fbd8ba7e1bc19c0d3dce043bf981ac04.tar.gz |
Add DB host parameter.
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -17,6 +17,10 @@ class Config: self.database_pw = c.get('database', 'password') else: self.database_pw = None + if c.has_option('database', 'host'): + self.database_host = c.get('database', 'host') + else: + self.database_host = None self.database_files_dir = c.get('database', 'files_dir') self.database_docs_dir = c.get('database', 'docs_dir') if c.has_option('database', 'pubsubhubbub'): |