Esempio n. 1
0
 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
Esempio n. 2
0
 def _load_caps(self):
     """ Load capabilities.
     """
     return CapFactory.get_caps()