def _has_caps(self, obj): """ Returns true if we have caps that support the given object. """ supported_caps = [cap for cap in CapFactory.get_caps() if cap.supports_obj(obj)] if supported_caps: return True else: return False
def _load_caps(self): """ Load capabilities. """ return CapFactory.get_caps()