Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/s/t/statusboard-HEAD/statusboard/plugins/jenkins/views.py   statusboard(Download)
 
from statusboard.plugins.jenkins.models import Job
from statusboard.utils.json import JSONResponse
 
def jobs(request):
    server_url = request.GET.get('server_url')
    if not server_url:
        return HttpResponseBadRequest
    return JSONResponse({

src/s/t/statusboard-HEAD/statusboard/core/views.py   statusboard(Download)
from statusboard.core.utils import hex_random, add_new_widget
from statusboard.plugins import load_plugins, plugin_registry
from statusboard.utils.json import JSONResponse
 
default_grid = [
    for widget_id in to_reload:
        output[widget_id] = render_widget(request, widgets[widget_id])
    return JSONResponse({'output': output})
 
# @app.route('/debug/grid')