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')
|
WORKDIR = os.path.join(os.path.expanduser('~'), '.weboob')
|
||||||
BACKENDS_FILENAME = 'backends'
|
BACKENDS_FILENAME = 'backends'
|
||||||
|
|
||||||
def __init__(self, app_name, workdir=WORKDIR, backends_filename=None, scheduler=None):
|
def __init__(self, workdir=WORKDIR, backends_filename=None, scheduler=None):
|
||||||
self.app_name = app_name
|
|
||||||
self.workdir = workdir
|
self.workdir = workdir
|
||||||
self.backends = {}
|
self.backends = {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ class BaseApplication(object):
|
||||||
self._parser.add_option('--shell-completion', action='store_true', help=optparse.SUPPRESS_HELP)
|
self._parser.add_option('--shell-completion', action='store_true', help=optparse.SUPPRESS_HELP)
|
||||||
|
|
||||||
def create_weboob(self):
|
def create_weboob(self):
|
||||||
return Weboob(self.APPNAME)
|
return Weboob()
|
||||||
|
|
||||||
def create_storage(self, path=None, klass=None):
|
def create_storage(self, path=None, klass=None):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ class PromptApplication(ConsoleApplication):
|
||||||
SYNOPSIS = 'Usage: %prog [options (-h for help)]'
|
SYNOPSIS = 'Usage: %prog [options (-h for help)]'
|
||||||
|
|
||||||
def create_weboob(self):
|
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")
|
@ConsoleApplication.command("Display this notice")
|
||||||
def command_help(self):
|
def command_help(self):
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ class QtApplication(QApplication, BaseApplication):
|
||||||
BaseApplication.__init__(self)
|
BaseApplication.__init__(self)
|
||||||
|
|
||||||
def create_weboob(self):
|
def create_weboob(self):
|
||||||
return Weboob(self.APPNAME, scheduler=QtScheduler(self))
|
return Weboob(scheduler=QtScheduler(self))
|
||||||
|
|
||||||
class QtMainWindow(QMainWindow):
|
class QtMainWindow(QMainWindow):
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue