Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
from django.template import RequestContext
@cache_control(must_revalidate=False, max_age=60 * 60 * 8) def get_json(request): "state": { "activeLayers": [] }, "layers": [layer.toDict for layer in Layer.objects.filter(is_sublayer=False)], "themes": [theme.toDict for theme in Theme.objects.all()], "success": True } return HttpResponse(simplejson.dumps(json))
def demo(request): context = RequestContext(request) return render_to_response('layer_manager/demo.html', context) |