def is_enabled(self, cls):
        """Return whether the given component class is enabled."""
        if cls not in self.enabled:
            self.enabled[cls] = self.is_component_enabled(cls)
        return self.enabled[cls]
def is_enabled ( self , cls ) : if cls not in self . enabled : self . enabled [ cls ] = self . is_component_enabled ( cls ) return self . enabled [ cls ]
Return whether the given component class is enabled.