#NEWLINE# @ staticmethod #NEWLINE# def get_requested_vlans_by_all_experiments( ) : #NEWLINE# #INDENT# requested_vlans = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# vranges = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for exp in Experiment . objects . all ( ) : #NEWLINE# #INDENT# vranges [ int ( exp . id ) ] = [ x for x in exp . experimentflowspace_set . values_list ( 'vlan_id_s' , 'vlan_id_e' ) . distinct ( ) ] #NEWLINE# requested_vlans [ int ( exp . id ) ] = sum ( [ range ( x [ 0 ] , ( x [ 1 ] + 1 ) ) for x in vranges [ int ( exp . id ) ] ] , [ ] ) #NEWLINE# #UNINDENT# return requested_vlans