Add get_api function

This commit is contained in:
Anna 2010-05-20 15:47:37 -04:00
parent d5c3283ce8
commit e32209bf2b
2 changed files with 11 additions and 5 deletions

View file

@ -70,7 +70,7 @@ class Hrafn():
for item in config.sections():
if (re.match(r'account', item)):
username = config.get(item, 'username')
self.accounts[username] = apithreads.CustomApi(username=username, password=config.get(item, 'password'))
self.accounts[username] = apithreads.get_api(username=username, password=config.get(item, 'password'))
self.accounts[username].sig_proxy.connect('lists-ready', self.on_lists_ready)
if not self.db.has_key('active_user'):