# HG changeset patch # User Sverre Rabbelier # Date 1236523015 0 # Node ID d8a45f62224162413b277124619a8d291f704d00 # Parent 0288cb88edd2e0912fe645149d76a37ea25b7820 Don't override the params argument Patch by: Sverre Rabbelier diff -r 0288cb88edd2 -r d8a45f622241 app/soc/views/models/program.py --- a/app/soc/views/models/program.py Sun Mar 08 14:36:24 2009 +0000 +++ b/app/soc/views/models/program.py Sun Mar 08 14:36:55 2009 +0000 @@ -238,11 +238,11 @@ from soc.views.models import organization as organization_view - params = organization_view.view.getParams() - params['list_template'] = 'soc/program/allocation/allocation.html' - params['list_heading'] = 'soc/program/allocation/heading.html' - params['list_row'] = 'soc/program/allocation/row.html' - params['list_pagination'] = 'soc/list/no_pagination.html' + org_params = organization_view.view.getParams() + org_params['list_template'] = 'soc/program/allocation/allocation.html' + org_params['list_heading'] = 'soc/program/allocation/heading.html' + org_params['list_row'] = 'soc/program/allocation/row.html' + org_params['list_pagination'] = 'soc/list/no_pagination.html' program = program_logic.logic.getFromKeyFields(kwargs) @@ -251,7 +251,7 @@ 'status': 'active', } - content = lists.getListContent(request, params, filter=filter) + content = lists.getListContent(request, org_params, filter=filter) contents = [content] context = { @@ -260,7 +260,7 @@ 'uses_slot_allocator': True } - return self._list(request, params, contents, page_name, context) + return self._list(request, org_params, contents, page_name, context) def _editPost(self, request, entity, fields): """See base._editPost().