From fc0cd726676de701a432cd828bd95a6e6a3503bd Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Fri, 30 Sep 2016 16:52:32 -0400 Subject: [PATCH] Implement a modules listing function --- cozyweboob.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cozyweboob.py b/cozyweboob.py index bbdb98f..122306c 100755 --- a/cozyweboob.py +++ b/cozyweboob.py @@ -56,6 +56,18 @@ class WeboobProxy(object): """ Weboob().update(progress=DummyProgress()) + @staticmethod + def list_modules(capability=None): + """ + List all available modules and their configuration options. + + Args: + capability: Restrict the modules list to a given capability. + Returns: A dict mapping module names to supported capabilities and + available configuration options. + """ + pass + def __init__(self, modulename, parameters): """ Create a Weboob handle and try to load the modules.