equal
deleted
inserted
replaced
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 """ |