qubes/tools/qvm_ls: fix getting columns from mixin

This commit is contained in:
Wojtek Porczyk 2016-01-21 15:13:33 +01:00
parent 21d6d51cbb
commit 6bc30b2e0b

View File

@ -198,8 +198,11 @@ def process_class(cls):
:param qubes.vm.BaseVMMeta cls: Class to round up. :param qubes.vm.BaseVMMeta cls: Class to round up.
''' '''
for prop in cls.__dict__.values(): for klass in cls.__mro__:
holder = prop.fget if isinstance(prop, __builtin__.property) else prop for prop in klass.__dict__.values():
holder = prop.fget \
if isinstance(prop, __builtin__.property) \
else prop
if not hasattr(holder, 'ls_head') or holder.ls_head is None: if not hasattr(holder, 'ls_head') or holder.ls_head is None:
continue continue