#NEWLINE# def complete_creator_match( a_project , a_base ) : #NEWLINE# #INDENT# "\n        A string list of the creator of `a_project' that match\n        `a_base' in the current code context\n    " #NEWLINE# matches = [ ] #NEWLINE# if is_cursor_on_client_call ( ) : #NEWLINE# #INDENT# l_features = a_project . feature_list ( get_class_from_buffer ( a_project ) ) #NEWLINE# l_features . extend ( get_local_variable ( a_project ) ) #NEWLINE# l_features . extend ( get_result_and_arguments ( a_project ) ) #NEWLINE# l_stack = create_row_object_stack ( ) #NEWLINE# if l_stack : #NEWLINE# #INDENT# l_index = index_of_key_in_pair ( l_stack [ 0 ] , l_features ) #NEWLINE# if ( l_index >= 0 ) : #NEWLINE# #INDENT# l_class = l_features [ l_index ] [ 1 ] #NEWLINE# if l_class : #NEWLINE# #INDENT# matches = match_list_feature ( a_project . creators_list ( l_class ) , a_base ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# matches . sort ( key = ( lambda mbr : mbr . lower ( ) ) ) #NEWLINE# result = '[' #NEWLINE# is_first = True #NEWLINE# for match in matches : #NEWLINE# #INDENT# if is_first : #NEWLINE# #INDENT# result = ( ( ( result + '"' ) + match ) + '"' ) #NEWLINE# is_first = False #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# result = ( ( ( matches + ',"' ) + match ) + '"' ) #NEWLINE# #UNINDENT# #UNINDENT# result = ( result + ']' ) #NEWLINE# return result