#NEWLINE# def _get_columns( item ) : #NEWLINE# #INDENT# columns = list ( item . keys ( ) ) #NEWLINE# property_column_mappings = [ ] #NEWLINE# if ( 'security_group_rules' in columns ) : #NEWLINE# #INDENT# columns . append ( 'rules' ) #NEWLINE# columns . remove ( 'security_group_rules' ) #NEWLINE# property_column_mappings . append ( ( 'rules' , 'security_group_rules' ) ) #NEWLINE# #UNINDENT# if ( 'tenant_id' in columns ) : #NEWLINE# #INDENT# columns . append ( 'project_id' ) #NEWLINE# columns . remove ( 'tenant_id' ) #NEWLINE# property_column_mappings . append ( ( 'project_id' , 'tenant_id' ) ) #NEWLINE# #UNINDENT# display_columns = sorted ( columns ) #NEWLINE# property_columns = sorted ( columns ) #NEWLINE# for property_column_mapping in property_column_mappings : #NEWLINE# #INDENT# property_index = property_columns . index ( property_column_mapping [ 0 ] ) #NEWLINE# property_columns [ property_index ] = property_column_mapping [ 1 ] #NEWLINE# #UNINDENT# return ( tuple ( display_columns ) , property_columns )