From 733b95e983644152a33252c8e9b2d52149863265 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 23 Feb 2019 10:24:47 +0100 Subject: [PATCH] Revert "add enable and disable command to weboob-config" This reverts commit 98e3da921b8c03abe2638076c0bd5e042f52638a. --- AUTHORS | 3 --- weboob/applications/weboobcfg/weboobcfg.py | 24 ---------------------- 2 files changed, 27 deletions(-) diff --git a/AUTHORS b/AUTHORS index 12f498881b..73982f77eb 100644 --- a/AUTHORS +++ b/AUTHORS @@ -276,9 +276,6 @@ Stefano Zacchiroli Adrien Kunysz * Fixes on setup.py. -Michael Scherer - * Contribution on weboob-config. - Damien Cassou * Minor fixes on housing modules. diff --git a/weboob/applications/weboobcfg/weboobcfg.py b/weboob/applications/weboobcfg/weboobcfg.py index 42167b8c51..0f80eae49b 100644 --- a/weboob/applications/weboobcfg/weboobcfg.py +++ b/weboob/applications/weboobcfg/weboobcfg.py @@ -186,30 +186,6 @@ def do_remove(self, backend_name): 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 -- GitLab