--backends is used on every frontends
This commit is contained in:
parent
e79e4bd65c
commit
758281effb
10 changed files with 28 additions and 18 deletions
|
|
@ -36,7 +36,7 @@ class Boobank(ConsoleApplication):
|
|||
APPNAME = 'boobank'
|
||||
|
||||
def main(self, argv):
|
||||
self.weboob.load_backends(ICapBank, names=self.enabled_backends)
|
||||
self.load_backends(ICapBank, names=self.enabled_backends)
|
||||
return self.process_command(*argv[1:])
|
||||
|
||||
@ConsoleApplication.command('List every available accounts')
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class Dummy(BaseApplication):
|
|||
APPNAME = 'dummy'
|
||||
|
||||
def main(self, argv):
|
||||
self.weboob.load_backends()
|
||||
self.load_backends()
|
||||
|
||||
for backend in self.weboob.iter_backends():
|
||||
print 'Backend [%s]' % backend.name
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class HaveSex(PromptApplication):
|
|||
|
||||
def main(self, argv):
|
||||
self.load_config()
|
||||
self.weboob.load_backends(ICapDating, storage=self.create_storage(self.STORAGE_FILENAME))
|
||||
self.load_backends(ICapDating, storage=self.create_storage(self.STORAGE_FILENAME))
|
||||
|
||||
return self.loop()
|
||||
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class QVideoob(QtApplication):
|
|||
}
|
||||
}
|
||||
def main(self, argv):
|
||||
self.weboob.load_modules(ICapVideoProvider, names=self.enabled_backends)
|
||||
self.load_modules(ICapVideoProvider)
|
||||
self.load_config()
|
||||
|
||||
self.main_window = MainWindow(self.config, self.weboob)
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class Travel(ConsoleApplication):
|
|||
APPNAME = 'travel'
|
||||
|
||||
def main(self, argv):
|
||||
self.weboob.load_modules(ICapTravel)
|
||||
self.load_modules(ICapTravel)
|
||||
|
||||
return self.process_command(*argv[1:])
|
||||
|
||||
|
|
|
|||
|
|
@ -146,10 +146,10 @@ class TransilienUI():
|
|||
backend.iter_station_search(self.combo_dest.get_current_text()):
|
||||
for departure in \
|
||||
backend.iter_station_departures(station.id, arrival.id):
|
||||
self.treestore.append(None,
|
||||
[departure.type,
|
||||
departure.time,
|
||||
departure.arrival_station,
|
||||
self.treestore.append(None,
|
||||
[departure.type,
|
||||
departure.time,
|
||||
departure.arrival_station,
|
||||
departure.information])
|
||||
|
||||
|
||||
|
|
@ -159,6 +159,6 @@ class Travel(BaseApplication):
|
|||
|
||||
def main(self, argv):
|
||||
"main fonction"
|
||||
self.weboob.load_modules(ICapTravel)
|
||||
self.load_modules(ICapTravel)
|
||||
TransilienUI(self.weboob)
|
||||
gtk.main()
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ class Videoob(ConsoleApplication):
|
|||
CONFIG = {}
|
||||
|
||||
def main(self, argv):
|
||||
self.weboob.load_modules(ICapVideoProvider, names=self.enabled_backends)
|
||||
self.load_modules(ICapVideoProvider)
|
||||
return self.process_command(*argv[1:])
|
||||
|
||||
@ConsoleApplication.command('Get video information')
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class WetBoobs(ConsoleApplication):
|
|||
APPNAME = 'wetboobs'
|
||||
|
||||
def main(self, argv):
|
||||
self.weboob.load_modules(ICapWeather)
|
||||
self.load_modules(ICapWeather)
|
||||
|
||||
return self.process_command(*argv[1:])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue