(self)
Return method named by `self._req_method` in controller if able
Return method named by `self._req_method` in controller if able
Return method named by self . _req_method in controller if able
def _find_method(self):
        """Return method named by `self._req_method` in controller if able"""
        log.debug('Trying to find JSON-RPC method: %s', self._req_method)
        if self._req_method.startswith('_'):
            raise AttributeError("Method not allowed")

        try:
            func = getattr(self, self._req_method, None)
        except UnicodeEncodeError:
            # XMLRPCController catches this, not sure why.
            raise AttributeError("Problem decoding unicode in requested "
                                 "method name.")

        if isinstance(func, types.MethodType):
            return func
        else:
            raise AttributeError("No such method: %s" % self._req_method)
def _find_method ( self ) : log . debug ( 'Trying to find JSON-RPC method: %s' , self . _req_method ) if self . _req_method . startswith ( '_' ) : raise AttributeError ( "Method not allowed" ) try : func = getattr ( self , self . _req_method , None ) except UnicodeEncodeError : # XMLRPCController catches this, not sure why. raise AttributeError ( "Problem decoding unicode in requested " "method name." ) if isinstance ( func , types . MethodType ) : return func else : raise AttributeError ( "No such method: %s" % self . _req_method )