• Jerome Berthier's avatar
    [tools.backend] fix iter_caps not returning only Capabilities · 7e2f5daf
    Jerome Berthier authored
    When working with multiple AbstractModule inheritance you may
    have Class1 and Class2 instanciated:
    
    Class1(Module, CapBank)
    
    Class2(AbstractModule, CapBank) (Abstract of Class1)
    
    Instanciating a class Class2 object, its MRO contains both
    Class1 and CapBank.
    
    So when looking for Class2 capabilities, the patched method
    as returning Class1 because actually Class1 is a subclass of
    Capability as it inherit from Class1.
    7e2f5daf
Name
Last commit
Last update
.ci Loading commit data...
contrib Loading commit data...
desktop Loading commit data...
docs Loading commit data...
icons Loading commit data...
man Loading commit data...
modules Loading commit data...
scripts Loading commit data...
tools Loading commit data...
weboob Loading commit data...
.editorconfig Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
MANIFEST.in Loading commit data...
MANIFEST.in.modules Loading commit data...
README.md Loading commit data...
build.mk Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...