Example #1
0
def return_json_children(request, parentid):

    items.setowner(request.user.id)

    json = items.createjson(str(parentid))

    return HttpResponse(json)
Example #2
0
def display_list(request):

    items.setowner(request.user.id)

    c = Context({
        'json': items.createjson('0'),
        'loggedin': True,
        'username': request.user.username
    })

    return render_to_response('app.html', c, context_instance=RequestContext(request))