#NEWLINE# @ staticmethod #NEWLINE# def _cmd_show_row( ctx , row , level ) : #NEWLINE# #INDENT# _INDENT_SIZE = 4 #NEWLINE# show = VSCtl . _cmd_show_find_table_by_row ( row ) #NEWLINE# output = '' #NEWLINE# output += ( ( ' ' * level ) * _INDENT_SIZE ) #NEWLINE# if ( show and show . name_column ) : #NEWLINE# #INDENT# output += ( '%s ' % show . table ) #NEWLINE# datum = getattr ( row , show . name_column ) #NEWLINE# output += datum #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# output += str ( row . uuid ) #NEWLINE# #UNINDENT# output += '\n' #NEWLINE# if ( ( not show ) or show . recurse ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# show . recurse = True #NEWLINE# for column in show . columns : #NEWLINE# #INDENT# datum = row . _data [ column ] #NEWLINE# key = datum . type . key #NEWLINE# if ( ( atom . type == ovs . db . types . UuidType ) and key . ref_table_name ) : #NEWLINE# #INDENT# ref_show = VSCtl . _cmd_show_find_table_by_name ( key . ref_table_name ) #NEWLINE# if ref_show : #NEWLINE# #INDENT# for atom in datum . values : #NEWLINE# #INDENT# ref_row = ctx . idl . tables [ ref_show . table ] . rows . get ( atom . value ) #NEWLINE# if ref_row : #NEWLINE# #INDENT# VSCtl . _cmd_show_row ( ctx , ref_row , ( level + 1 ) ) #NEWLINE# #UNINDENT# #UNINDENT# continue #NEWLINE# #UNINDENT# #UNINDENT# if ( not datum . is_default ( ) ) : #NEWLINE# #INDENT# output += ( ( ' ' * ( level + 1 ) ) * _INDENT_SIZE ) #NEWLINE# output += ( '%s: %s\n' % ( column , datum ) ) #NEWLINE# #UNINDENT# #UNINDENT# show . recurse = False #NEWLINE# return output