store instance name in Backend

This commit is contained in:
Romain Bignon 2010-04-04 18:57:07 +02:00
commit 4736260993
2 changed files with 6 additions and 5 deletions

View file

@ -44,8 +44,9 @@ class Backend:
class ConfigError(Exception): pass
def __init__(self, weboob, config):
def __init__(self, weboob, name, config):
self.weboob = weboob
self.name = name
self.config = {}
for name, field in self.CONFIG.iteritems():
value = config.get(name, field.default)