app/soc/views/simple.py
changeset 374 9363b9dc2983
parent 365 74dec172944e
child 481 94834a1e6c01
equal deleted inserted replaced
373:dcd7013ae0d5 374:9363b9dc2983
    59     A subclass of django.http.HttpResponse containing the generated page.
    59     A subclass of django.http.HttpResponse containing the generated page.
    60   """
    60   """
    61 
    61 
    62   template = helper.templates.makeSiblingTemplatesList(template, 'public.html')
    62   template = helper.templates.makeSiblingTemplatesList(template, 'public.html')
    63 
    63 
       
    64   # TODO(tlarsen): fix getUniversalContext() so that it is back to being a
       
    65   #   dict merge of missing defaults (as discussed at length in recent code
       
    66   #   reviews)
    64   if not context:
    67   if not context:
    65     context = helper.responses.getUniversalContext(request)
    68     context = helper.responses.getUniversalContext(request)
       
    69 
       
    70   context['page'] = page
    66 
    71 
    67   try:
    72   try:
    68     if link_name:
    73     if link_name:
    69       user = id_user.getUserFromLinkNameOr404(link_name)
    74       user = id_user.getUserFromLinkNameOr404(link_name)
    70   except out_of_band.ErrorResponse, error:
    75   except out_of_band.ErrorResponse, error: