#NEWLINE# def find( self , **kwargs ) : #NEWLINE# #INDENT# "\n        Find a single item with attributes matching ``**kwargs``.\n        \n        This isn't very efficient: it loads the entire list then filters on\n        the Python side.\n        " #NEWLINE# rl = self . findall ( ** kwargs ) #NEWLINE# try : #NEWLINE# #INDENT# return rl [ 0 ] #NEWLINE# #UNINDENT# except IndexError : #NEWLINE# #INDENT# raise NotFound ( 404 , ( 'No %s matching %s.' % ( self . resource_class . __name__ , kwargs ) ) )