--- a/app/soc/views/helper/lists.py Tue Dec 02 20:14:14 2008 +0000
+++ b/app/soc/views/helper/lists.py Tue Dec 02 22:03:46 2008 +0000
@@ -88,13 +88,12 @@
return limit, offset
-def getListContent(request, params, logic, filter=None, idx=0):
+def getListContent(request, params, filter=None, idx=0):
"""Returns a dict with fields used for rendering lists.
Args:
request: the Django HTTP request object
params: a dict with params for the View this list belongs to
- logic: the logic object for the View this list belongs to
filter: a filter for this list
idx: the index of this list
@@ -116,6 +115,8 @@
}
"""
+ logic = params['logic']
+
limit, offset = getLimitAndOffset(request, idx)
arg_name = 'limit_%d' % idx
pagination_form = makePaginationForm(request, limit, arg_name)