equal
deleted
inserted
replaced
23 |
23 |
24 |
24 |
25 from google.appengine.api import users |
25 from google.appengine.api import users |
26 from django import http |
26 from django import http |
27 from django import shortcuts |
27 from django import shortcuts |
|
28 from soc.views.helpers import response_helpers |
28 |
29 |
29 def public(request, template='soc/site/home.html'): |
30 def public(request, template='soc/site/home/public.html'): |
30 """Home site view of Melange. |
31 """Home site view of Melange. |
31 |
32 |
32 Args: |
33 Args: |
33 request: the standard django request object. |
34 request: the standard django request object. |
34 template: the template path to use for rendering the template. |
35 template: the template path to use for rendering the template. |
35 |
36 |
36 Returns: |
37 Returns: |
37 A subclass of django.http.HttpResponse with generated template. |
38 A subclass of django.http.HttpResponse with generated template. |
38 """ |
39 """ |
39 |
40 return response_helpers.respond(request, |
40 user = users.get_current_user() |
41 template, {'template': template}) |
41 |
|
42 return shortcuts.render_to_response( |
|
43 template, dictionary={'template': template, 'user': user}) |
|