def _get_callable(self, classname, cname):
        """Return a function or method object appropriate to fulfill a request

        classname -- The CIM class name associated with the request.
        cname -- The function or method name to look for.

        """

        callable = None
        if classname in self.provregs:
            provClass = self.provregs[classname]
            if hasattr(provClass, cname):
                callable = getattr(provClass, cname)
        elif hasattr(self.provmod, cname):
            callable = getattr(self.provmod, cname)
        if callable is None:
            raise pywbem.CIMError(
                pywbem.CIM_ERR_FAILED,
                "No provider registered for %s or no callable for %s:%s on " \
                "provider %s" % (classname, classname, cname, self.provid))
        return callable
def _get_callable ( self , classname , cname ) : callable = None if classname in self . provregs : provClass = self . provregs [ classname ] if hasattr ( provClass , cname ) : callable = getattr ( provClass , cname ) elif hasattr ( self . provmod , cname ) : callable = getattr ( self . provmod , cname ) if callable is None : raise pywbem . CIMError ( pywbem . CIM_ERR_FAILED , "No provider registered for %s or no callable for %s:%s on " "provider %s" % ( classname , classname , cname , self . provid ) ) return callable
Return a function or method object appropriate to fulfill a request

        classname -- The CIM class name associated with the request.
        cname -- The function or method name to look for.