create backends with Weboob object

This commit is contained in:
Romain Bignon 2010-03-08 17:45:11 +01:00
commit 8c4340bed3
6 changed files with 47 additions and 42 deletions

View file

@ -20,8 +20,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
"""
class Backend:
def __init__(self, config):
self.config = config
def __init__(self, weboob):
self.weboob = weboob
def hasCaps(self, caps):
if not isinstance(caps, (list,tuple)):