#NEWLINE# @ classmethod #NEWLINE# def from_network( cls , participant , network ) : #NEWLINE# #INDENT# participant_id = participant . id #NEWLINE# r = cls . db . one ( '\n            SELECT r.*::exchange_routes\n              FROM current_exchange_routes r\n             WHERE participant = %(participant_id)s\n               AND network = %(network)s\n        ' , locals ( ) ) #NEWLINE# if r : #NEWLINE# #INDENT# r . set_attributes ( participant = participant ) #NEWLINE# #UNINDENT# return r