remove the useless 'app_name' parameter from the Weboob class
This commit is contained in:
parent
110a975735
commit
d05b828bd4
4 changed files with 4 additions and 5 deletions
|
|
@ -35,8 +35,7 @@ class Weboob(object):
|
|||
WORKDIR = os.path.join(os.path.expanduser('~'), '.weboob')
|
||||
BACKENDS_FILENAME = 'backends'
|
||||
|
||||
def __init__(self, app_name, workdir=WORKDIR, backends_filename=None, scheduler=None):
|
||||
self.app_name = app_name
|
||||
def __init__(self, workdir=WORKDIR, backends_filename=None, scheduler=None):
|
||||
self.workdir = workdir
|
||||
self.backends = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class BaseApplication(object):
|
|||
self._parser.add_option('--shell-completion', action='store_true', help=optparse.SUPPRESS_HELP)
|
||||
|
||||
def create_weboob(self):
|
||||
return Weboob(self.APPNAME)
|
||||
return Weboob()
|
||||
|
||||
def create_storage(self, path=None, klass=None):
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ class PromptApplication(ConsoleApplication):
|
|||
SYNOPSIS = 'Usage: %prog [options (-h for help)]'
|
||||
|
||||
def create_weboob(self):
|
||||
return Weboob(self.APPNAME, scheduler=PromptScheduler(self.prompt, self.read_cb))
|
||||
return Weboob(scheduler=PromptScheduler(self.prompt, self.read_cb))
|
||||
|
||||
@ConsoleApplication.command("Display this notice")
|
||||
def command_help(self):
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class QtApplication(QApplication, BaseApplication):
|
|||
BaseApplication.__init__(self)
|
||||
|
||||
def create_weboob(self):
|
||||
return Weboob(self.APPNAME, scheduler=QtScheduler(self))
|
||||
return Weboob(scheduler=QtScheduler(self))
|
||||
|
||||
class QtMainWindow(QMainWindow):
|
||||
def __init__(self, parent=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue