fix iter_caps() to not return only immediate base cap classes
This commit is contained in:
parent
642f2b7328
commit
f603c44d6c
2 changed files with 10 additions and 7 deletions
|
|
@ -82,9 +82,7 @@ class Module(object):
|
|||
return self.klass.ICON
|
||||
|
||||
def iter_caps(self):
|
||||
for cap in self.klass.__bases__:
|
||||
if issubclass(cap, IBaseCap) and cap != IBaseCap:
|
||||
yield cap
|
||||
return self.klass.iter_caps()
|
||||
|
||||
def has_caps(self, *caps):
|
||||
for c in caps:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue