def get_security_label(self): image = self.get_location() return security.get_resource_label_xapi(image)
def get_resource_label(self, resource): res = security.get_resource_label_xapi(resource) return res