Пример #1
0
def settings_machine_detail_plugins(request):
    utils.reload_plugins_model()
    plugins = utils.get_active_and_inactive_plugins('machine_detail')
    context = {'user': request.user, 'plugins': plugins}
    return render(request, 'server/machine_detail_plugins.html', context)
Пример #2
0
def settings_reports(request):
    utils.reload_plugins_model()
    context = {'plugins': utils.get_active_and_inactive_plugins('report')}
    return render(request, 'server/reports.html', context)
Пример #3
0
def plugins_page(request):
    utils.reload_plugins_model()
    context = {'plugins': utils.get_active_and_inactive_plugins('machines')}
    return render(request, 'server/plugins.html', context)
Пример #4
0
def settings_machine_detail_plugins(request):
    utils.reload_plugins_model()
    plugins = utils.get_active_and_inactive_plugins('machine_detail')
    context = {'user': request.user, 'plugins': plugins}
    return render(request, 'server/machine_detail_plugins.html', context)
Пример #5
0
def settings_reports(request):
    utils.reload_plugins_model()
    context = {'plugins': utils.get_active_and_inactive_plugins('report')}
    return render(request, 'server/reports.html', context)
Пример #6
0
def plugins_page(request):
    utils.reload_plugins_model()
    context = {'plugins': utils.get_active_and_inactive_plugins('machines')}
    return render(request, 'server/plugins.html', context)