yaml

This changes the format of the required configuration file to yaml, to stay in line with the other conf files. The data inside is the same, but in yaml.
yes, but I am not sure we should assume that the everyone has a running
instance of couchdb in localhost by default, especially on port 5984.
Is there a specific reason for this ?

On Wed, Dec 10, 2014 at 9:13 AM, Phil Ewels <notifications@github.com>
wrote:

> In statusdb/db/__init__.py
> <https://github.com/SciLifeLab/statusdb/pull/5#discussion-diff-21588882>:
>
> > @@ -53,17 +53,12 @@ def __init__(self, log=None, url=None, **kwargs):
> >          self.url = 'localhost'
> >
> >          # Load from config if we have one
> > -        config = statusdb_config.load_config()
> > -        if config.has_option('statusdb', 'port'):
> > -            self.port = config.get('statusdb', 'port')
> > -        if config.has_option('statusdb', 'db'):
> > -            self.db = config.get('statusdb', 'db')
> > -        if config.has_option('statusdb', 'url'):
> > -            self.url = config.get('statusdb', 'url')
> > -        if config.has_option('statusdb', 'username'):
> > -            self.user = config.get('statusdb', 'username')
> > -        if config.has_option('statusdb', 'password'):
> > -            self.pw = config.get('statusdb', 'password')
> > +        config = statusdb_config.load_config(conf)
> > +        self.port = config.get('statusdb',{}).get('port')
>
> Will this overwrite the hardcoded defaults if port isn't in the config
> file?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/SciLifeLab/statusdb/pull/5/files#r21588882>.
>