#NEWLINE# def _build_cell_stub_info( test_case , our_name , parent_path , children ) : #NEWLINE# #INDENT# cell_db_entries = [ ] #NEWLINE# cur_db_id = 1 #NEWLINE# sep_char = cells_utils . PATH_CELL_SEP #NEWLINE# if parent_path : #NEWLINE# #INDENT# cell_db_entries . append ( dict ( id = cur_db_id , name = parent_path . split ( sep_char ) [ ( - 1 ) ] , is_parent = True , transport_url = _build_cell_transport_url ( cur_db_id ) ) ) #NEWLINE# cur_db_id += 1 #NEWLINE# our_path = ( ( parent_path + sep_char ) + our_name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# our_path = our_name #NEWLINE# #UNINDENT# for child in children : #NEWLINE# #INDENT# for ( child_name , grandchildren ) in child . items ( ) : #NEWLINE# #INDENT# _build_cell_stub_info ( test_case , child_name , our_path , grandchildren ) #NEWLINE# cell_entry = dict ( id = cur_db_id , name = child_name , transport_url = _build_cell_transport_url ( cur_db_id ) , is_parent = False ) #NEWLINE# cell_db_entries . append ( cell_entry ) #NEWLINE# cur_db_id += 1 #NEWLINE# #UNINDENT# #UNINDENT# stub_info = CellStubInfo ( test_case , our_name , cell_db_entries ) #NEWLINE# CELL_NAME_TO_STUB_INFO [ our_name ] = stub_info