def ajax_request(func):
    @wraps(func)
    def wrapper(request, *args, **kwargs):
        response = func(request, *args, **kwargs)
        if isinstance(response, dict):
            return JsonResponse(response)
        else:
            return response
    return wrapper
Returns a PaneItem for a QDockWidget.
dataset/ETHPy150Open splunk/splunk-webframework/server/splunkdj/decorators/render.py/ajax_request--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/qt4/tasks/main_window_layout.py/MainWindowLayout._get_pane