gremmie@1: """views for the legal application""" gremmie@1: gremmie@1: from django.shortcuts import render_to_response gremmie@1: from django.shortcuts import get_object_or_404 gremmie@1: from django.template import RequestContext gremmie@1: gremmie@1: from legal.models import Policy gremmie@1: gremmie@1: def view(request, policy_name): gremmie@1: policy = get_object_or_404(Policy, policy_type = policy_name) gremmie@1: return render_to_response('legal/view.html', gremmie@1: {'policy' : policy}, gremmie@1: context_instance = RequestContext(request))