app/soc/views/site/home.py
changeset 358 843d83b87282
parent 347 52676c696cd4
child 365 74dec172944e
equal deleted inserted replaced
357:9bd78a5073c2 358:843d83b87282
    36 import soc.views.helper.templates
    36 import soc.views.helper.templates
    37 
    37 
    38 
    38 
    39 DEF_SITE_HOME_PUBLIC_TMPL = 'soc/site/home/public.html'
    39 DEF_SITE_HOME_PUBLIC_TMPL = 'soc/site/home/public.html'
    40 
    40 
    41 def public(request, template=DEF_SITE_HOME_PUBLIC_TMPL):
    41 def public(request, page=None, template=DEF_SITE_HOME_PUBLIC_TMPL):
    42   """How the "general public" sees the Melange site home page.
    42   """How the "general public" sees the Melange site home page.
    43 
    43 
    44   Args:
    44   Args:
    45     request: the standard django request object.
    45     request: the standard django request object.
       
    46     page: a soc.logic.site.page.Page object which is abstraction that combines 
       
    47       a Django view with sidebar menu info
    46     template: the template path to use for rendering the template.
    48     template: the template path to use for rendering the template.
    47 
    49 
    48   Returns:
    50   Returns:
    49     A subclass of django.http.HttpResponse with generated template.
    51     A subclass of django.http.HttpResponse with generated template.
    50   """
    52   """