-b is handled by BaseApplication
This commit is contained in:
parent
27be2bdb25
commit
aee0e49cc8
5 changed files with 40 additions and 35 deletions
|
|
@ -48,7 +48,6 @@ class ConsoleApplication(BaseApplication):
|
|||
SYNOPSIS += ' %prog [--help] [--version]'
|
||||
|
||||
def __init__(self):
|
||||
self.enabled_backends = set()
|
||||
option_parser = OptionParser(self.SYNOPSIS, version=self._get_optparse_version())
|
||||
|
||||
try:
|
||||
|
|
@ -271,8 +270,6 @@ class ConsoleApplication(BaseApplication):
|
|||
command = staticmethod(command)
|
||||
|
||||
def load_backends(self, caps=None, names=None, *args, **kwargs):
|
||||
if names is None:
|
||||
names = self.enabled_backends
|
||||
loaded_backends = BaseApplication.load_backends(self, caps, names, *args, **kwargs)
|
||||
if not loaded_backends:
|
||||
print 'Cannot start application: no configured backend was found.'
|
||||
|
|
@ -314,9 +311,6 @@ class ConsoleApplication(BaseApplication):
|
|||
except BackendNotFound, e:
|
||||
logging.error(e)
|
||||
|
||||
def set_requested_backends(self, requested_backends):
|
||||
self.enabled_backends = requested_backends
|
||||
|
||||
def do(self, function, *args, **kwargs):
|
||||
"""
|
||||
Call Weboob.do(), after having filled the yielded object, if selected fields are given by user.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue