Did I find the right examples for you? yes no

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

src/s/t/statusboard-HEAD/statusboard/core/views.py   statusboard(Download)
from statusboard.core.models import Settings, GatherRequest
from statusboard.core.utils import hex_random, add_new_widget
from statusboard.plugins import load_plugins, plugin_registry
from statusboard.utils.json import JSONResponse
def ajax_add(request):
    user_settings = load_settings(request)
    # Insert the new widget and set its type up
    print 'Adding at %s,%s'%(request.POST['row'], request.POST['before'])
    new_widget = add_new_widget(request.grid, int(request.POST['row']), request.POST['before'])