def get_column_value(row, col):
 if (col == '_uuid'):
  val = row.uuid
 else:
  val = getattr(row, col)
 if (isinstance(val, list) and len(val)):
  if isinstance(val[0], idl.Row):
   val = [v.uuid for v in val]
  col_type = row._table.columns[col].type
  if col_type.is_optional():
   val = val[0]
 return val

def get_column_value ( row , col ) : if ( col == '_uuid' ) : val = row . uuid else : val = getattr ( row , col ) if ( isinstance ( val , list ) and len ( val ) ) : if isinstance ( val [ 0 ] , idl . Row ) : val = [ v . uuid for v in val ] col_type = row . _table . columns [ col ] . type if col_type . is_optional ( ) : val = val [ 0 ] return val
example : to get datapath_id from bridge table get_column_value .