#NEWLINE# def _dict_object_help( object_name , path , parent_object_names ) : #NEWLINE# #INDENT# 'See get_help().' #NEWLINE# attributes = graph_reference . get_valid_attributes ( object_name , parent_object_names ) #NEWLINE# lines = textwrap . wrap ( repr ( list ( parent_object_names ) ) , width = ( LINE_SIZE - TAB_SIZE ) ) #NEWLINE# help_dict = { #NEWLINE# #INDENT# 'object_name' : object_name , #NEWLINE# 'path_string' : ( ( '[' + '][' . join ( ( repr ( k ) for k in path ) ) ) + ']' ) , #NEWLINE# 'parent_object_names' : parent_object_names , #NEWLINE# 'attributes_string' : ( '\t' + '\n\t' . join ( lines ) ) , #NEWLINE# #UNINDENT# } #NEWLINE# return "Valid attributes for '{object_name}' at path {path_string} under parents {parent_object_names}:\n\n{attributes_string}\n\nRun `<{object_name}-object>.help('attribute')` on any of the above.\n'<{object_name}-object>' is the object at {path_string}" . format ( ** help_dict )