#NEWLINE# @ action ( route = '/radiovis/channels/' , template = 'radiovis/channels/home.html' ) #NEWLINE# @ only_orga_member_user ( ) #NEWLINE# def radiovis_channels_home( request ) : #NEWLINE# #INDENT# 'Show the list of channels to edit current picture.' #NEWLINE# list = [ ] #NEWLINE# for elem in Channel . query . join ( Station ) . filter ( ( Station . orga == int ( request . args . get ( 'ebuio_orgapk' ) ) ) ) . order_by ( Channel . name ) . all ( ) : #NEWLINE# #INDENT# list . append ( elem . json ) #NEWLINE# #UNINDENT# pictures = [ ] #NEWLINE# for elem in Picture . query . filter_by ( orga = int ( request . args . get ( 'ebuio_orgapk' ) ) ) . order_by ( Picture . name ) . all ( ) : #NEWLINE# #INDENT# pictures . append ( elem . json ) #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# 'list' : list , #NEWLINE# 'pictures' : pictures , #NEWLINE# #UNINDENT# }