Exemplo n.º 1
0
    def read(self, request):

        context = {
            'platform': get_platform_context(request.user),
            'workspace': get_workspace_context_definitions()
        }

        if 'theme' in request.GET:
            context['platform']['theme']['value'] = request.GET['theme']

        return HttpResponse(json.dumps(context, cls=LazyEncoder, sort_keys=True), content_type='application/json; charset=UTF-8')
Exemplo n.º 2
0
    def read(self, request):

        context = get_platform_context(request.user)
        return HttpResponse(json.dumps(context, cls=LazyEncoder),
                            content_type='application/json; charset=UTF-8')
Exemplo n.º 3
0
    def read(self, request):

        context = get_platform_context(request.user)
        return HttpResponse(json.dumps(context, cls=LazyEncoder), mimetype='application/json; charset=UTF-8')