Commit 733b95e9 authored by Romain Bignon's avatar Romain Bignon

Revert "add enable and disable command to weboob-config"

This reverts commit 98e3da92.
parent 472ea990
......@@ -276,9 +276,6 @@ Stefano Zacchiroli <zack@upsilon.cc>
Adrien Kunysz <adrien@kunysz.be>
* Fixes on setup.py.
Michael Scherer <misc@zarb.org>
* Contribution on weboob-config.
Damien Cassou <damien.cassou@gmail.com>
* Minor fixes on housing modules.
......
......@@ -186,30 +186,6 @@ class WeboobCfg(ReplApplication):
print('Backend instance "%s" does not exist' % backend_name, file=self.stderr)
return 1
def _do_toggle(self, backend_name, state):
try:
module_name, items = self.weboob.backends_config.get_backend(backend_name)
except KeyError:
print('Backend instance "%s" does not exist' % backend_name, file=self.stderr)
return 1
self.weboob.backends_config.edit_backend(backend_name, module_name, {'_enabled': state})
def do_enable(self, backend_name):
"""
enable BACKEND
Enable a disabled backend
"""
return self._do_toggle(backend_name, "true")
def do_disable(self, backend_name):
"""
disable BACKEND
Disable a backend
"""
return self._do_toggle(backend_name, "false")
def do_edit(self, line):
"""
edit BACKEND
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment