Commit 01b7f066 authored by Romain Bignon's avatar Romain Bignon

Revert "weboobcfg: Format capabilities as JSON array"

This reverts commit c81b622c.
parent 794e0cf5
......@@ -31,19 +31,6 @@ from weboob.tools.application.formatters.iformatter import IFormatter
__all__ = ['WeboobCfg']
class CapabilitiesWrapper(list):
"""
A wrapper class to keep the list nature of capabilities,
but provide a comma separated list representation for
formaters unable to display a list by themselves.
Useful for having an array representation in JSON and
comma separated list for simple format.
"""
def __repr__(self):
return ', '.join(self)
class ModuleInfoFormatter(IFormatter):
def format_dict(self, minfo):
result = '.------------------------------------------------------------------------------.\n'
......@@ -244,7 +231,7 @@ class WeboobCfg(ReplApplication):
caps = line.split()
for name, info in sorted(self.weboob.repositories.get_all_modules_info(caps).items()):
row = OrderedDict([('Name', name),
('Capabilities', CapabilitiesWrapper(info.capabilities)),
('Capabilities', ', '.join(info.capabilities)),
('Description', info.description),
('Installed', info.is_installed()),
])
......
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