def describe(self, **kwargs):
        """
        Returns descriptive information about this cruddy handler and the
        methods supported by it.
        """
        response = self._new_response()
        description = {
            'cruddy_version': __version__,
            'table_name': self.table_name,
            'supported_operations': copy.copy(self.supported_ops),
            'prototype': copy.deepcopy(self.prototype),
            'operations': {}
        }
        for name, method in inspect.getmembers(self, inspect.ismethod):
            if not name.startswith('_'):
                argspec = inspect.getargspec(method)
                if argspec.defaults is None:
                    defaults = None
                else:
                    defaults = list(argspec.defaults)
                method_info = {
                    'docs': inspect.getdoc(method),
                    'argspec': {
                        'args': argspec.args,
                        'varargs': argspec.varargs,
                        'keywords': argspec.keywords,
                        'defaults': defaults
                    }
                }
                description['operations'][name] = method_info
        response.data = description
        return response
def describe ( self , ** kwargs ) : response = self . _new_response ( ) description = { 'cruddy_version' : __version__ , 'table_name' : self . table_name , 'supported_operations' : copy . copy ( self . supported_ops ) , 'prototype' : copy . deepcopy ( self . prototype ) , 'operations' : { } } for name , method in inspect . getmembers ( self , inspect . ismethod ) : if not name . startswith ( '_' ) : argspec = inspect . getargspec ( method ) if argspec . defaults is None : defaults = None else : defaults = list ( argspec . defaults ) method_info = { 'docs' : inspect . getdoc ( method ) , 'argspec' : { 'args' : argspec . args , 'varargs' : argspec . varargs , 'keywords' : argspec . keywords , 'defaults' : defaults } } description [ 'operations' ] [ name ] = method_info response . data = description return response
Returns descriptive information about this cruddy handler and the
        methods supported by it.