def GetMethodConfig(self, method):
        """Returns service cached method config for given method."""
        method_config = self._method_configs.get(method)
        if method_config:
            return method_config
        func = getattr(self, method, None)
        if func is None:
            raise KeyError(method)
        method_config = getattr(func, 'method_config', None)
        if method_config is None:
            raise KeyError(method)
        self._method_configs[method] = config = method_config()
        return config
def GetMethodConfig ( self , method ) : method_config = self . _method_configs . get ( method ) if method_config : return method_config func = getattr ( self , method , None ) if func is None : raise KeyError ( method ) method_config = getattr ( func , 'method_config' , None ) if method_config is None : raise KeyError ( method ) self . _method_configs [ method ] = config = method_config ( ) return config
Returns service cached method config for given method.