#NEWLINE# def resolve_ids( identifier , resolvers ) : #NEWLINE# #INDENT# 'Resolves IDs given a list of functions.\n\n    :param string identifier: identifier string\n    :param list resolvers: a list of functions\n    :returns list:\n    ' #NEWLINE# try : #NEWLINE# #INDENT# return [ int ( identifier ) ] #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# if ( ( len ( identifier ) == 36 ) and UUID_RE . match ( identifier ) ) : #NEWLINE# #INDENT# return [ identifier ] #NEWLINE# #UNINDENT# for resolver in resolvers : #NEWLINE# #INDENT# ids = resolver ( identifier ) #NEWLINE# if ids : #NEWLINE# #INDENT# return ids #NEWLINE# #UNINDENT# #UNINDENT# return [ ]