#NEWLINE# def _save_network( self , network_id ) : #NEWLINE# #INDENT# ctx = context . get_admin_context ( ) #NEWLINE# with ctx . session . begin ( subtransactions = True ) : #NEWLINE# #INDENT# ctx . session . add ( models_v2 . Network ( id = network_id ) ) #NEWLINE# #UNINDENT# network = ctx . session . query ( models_v2 . Network ) . one ( ) #NEWLINE# return network . standard_attr_id