@action(route="/radiovis/channels/", template="radiovis/channels/home.html")
@only_orga_member_user()
def radiovis_channels_home(request):

    list = []

    for elem in Channel.query.join(Station).filter(Station.orga==int(request.args.get('ebuio_orgapk'))).order_by(Channel.name).all():
        list.append(elem.json)

    pictures = []

    for elem in Picture.query.filter_by(orga = int(request.args.get('ebuio_orgapk'))).order_by(Picture.name).all():
        pictures.append(elem.json)

    return {'list': list, 'pictures': pictures}
Show the list of channels to edit current picture.
dataset/ETHPy150Open ebu/radiodns-plugit/RadioDns-PlugIt/radiovis/actions.py/radiovis_channels_home