diff options
author | richard <devnull@localhost> | 2005-03-20 16:57:57 +0000 |
---|---|---|
committer | richard <devnull@localhost> | 2005-03-20 16:57:57 +0000 |
commit | bdf91f6e4e4cfd49cc0ad574dd8a597971cd533d (patch) | |
tree | 3916ef2da46ed155e681469befb595fd9820bf4f /config.py | |
parent | 94f2f64d18a889efb7ef892a43e4b34524da475f (diff) | |
download | decorator-bdf91f6e4e4cfd49cc0ad574dd8a597971cd533d.tar.gz |
-make psql connect use config
- remove sqlite from flamenco2
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -4,10 +4,15 @@ class Config: ''' Read in the config and set up the vars with the correct type. ''' def __init__(self, configfile, name): + # "name" argument no longer used c = ConfigParser.ConfigParser() c.read(configfile) - self.database = c.get(name, 'database') - self.mailhost = c.get(name, 'mailhost') - self.adminemail = c.get(name, 'adminemail') - self.url = c.get(name, 'url') + self.database_name = c.get('database', 'name') + self.database_user = c.get('database', 'user') + self.database_files_dir = c.get('database', 'files_dir') + + self.mailhost = c.get('webui', 'mailhost') + self.adminemail = c.get('webui', 'adminemail') + self.url = c.get('webui', 'url') + self.files_url = c.get('webui', 'files_url') |