app/soc/views/models/base.py
changeset 1296 64918d0c97ea
parent 1269 62b1e9ee46c5
child 1304 b736aed728c2
--- a/app/soc/views/models/base.py	Fri Feb 13 13:35:31 2009 +0000
+++ b/app/soc/views/models/base.py	Fri Feb 13 16:40:02 2009 +0000
@@ -425,7 +425,7 @@
 
     return self._list(request, params, contents, page_name)
 
-  def _list(self, request, params, contents, page_name):
+  def _list(self, request, params, contents, page_name, context={}):
     """Returns the list page for the specified contents.
 
     Args:
@@ -433,6 +433,7 @@
       params: a dict with params for this View
       contents: a list of content dicts
       page_name: the page name displayed in templates as page and header title
+      context: the context for this page
 
     Params usage:
       name: The name value is used to set the entity_type in the
@@ -444,7 +445,8 @@
         to display the list of all entities for this View.
     """
 
-    context = helper.responses.getUniversalContext(request)
+    context = dicts.merge(context, 
+        helper.responses.getUniversalContext(request))
     context['page_name'] = page_name
     context['list'] = soc.logic.lists.Lists(contents)