def render_to_response(self, context, **response_kwargs):
        '''
        Compares requested format to supported formats and routes the response.

        :attribute switcher: A dictionary of format types and their respective response methods.
        '''
        switcher = {
            'json': self.return_json_response,
            'opml': self.return_opml_response,
            'md': self.return_md_response,
            'textbundle': self.not_implemented,
            'xlsx': self.not_implemented,
        }
        if self.format not in switcher.keys():
            return self.not_implemented(context, **response_kwargs)
        return switcher[self.format](context, **response_kwargs)
def render_to_response ( self , context , ** response_kwargs ) : switcher = { 'json' : self . return_json_response , 'opml' : self . return_opml_response , 'md' : self . return_md_response , 'textbundle' : self . not_implemented , 'xlsx' : self . not_implemented , } if self . format not in switcher . keys ( ) : return self . not_implemented ( context , ** response_kwargs ) return switcher [ self . format ] ( context , ** response_kwargs )
Compares requested format to supported formats and routes the response.

        :attribute switcher: A dictionary of format types and their respective response methods.