--- a/app/soc/views/models/base.py Wed Sep 02 10:24:10 2009 +0200
+++ b/app/soc/views/models/base.py Wed Sep 02 10:51:25 2009 +0200
@@ -510,8 +510,8 @@
@decorators.merge_params
@decorators.check_access
- def list(self, request, access_type,
- page_name=None, params=None, filter=None, order=None, **kwargs):
+ def list(self, request, access_type, page_name=None, params=None,
+ filter=None, order=None, prefetch=None, **kwargs):
"""Displays the list page for the entity type.
Args:
@@ -520,6 +520,7 @@
page_name: the page name displayed in templates as page and header title
params: a dict with params for this View
filter: a dict for the properties that the entities should have
+ prefetch: the fields of the data that should be pre-fetched
Params usage:
The params dictionary is passed as argument to getListContent in
@@ -528,7 +529,8 @@
the _list method. See the docstring for _list on how it uses it.
"""
- content = helper.lists.getListContent(request, params, filter, order=order)
+ content = helper.lists.getListContent(request, params, filter,
+ order=order, prefetch=prefetch)
contents = [content]
return self._list(request, params, contents, page_name)