app/soc/views/models/base.py
changeset 1667 95bc81b4cd5c
parent 1658 65147d9fbd96
child 1677 b2cf6ad50a2a
equal deleted inserted replaced
1666:cdb7e5581694 1667:95bc81b4cd5c
   459     return self._constructResponse(request, entity, context, form, params)
   459     return self._constructResponse(request, entity, context, form, params)
   460 
   460 
   461   @decorators.merge_params
   461   @decorators.merge_params
   462   @decorators.check_access
   462   @decorators.check_access
   463   def list(self, request, access_type,
   463   def list(self, request, access_type,
   464            page_name=None, params=None, filter=None, **kwargs):
   464            page_name=None, params=None, filter=None, order=None, **kwargs):
   465     """Displays the list page for the entity type.
   465     """Displays the list page for the entity type.
   466 
   466 
   467     Args:
   467     Args:
   468       request: the standard Django HTTP request object
   468       request: the standard Django HTTP request object
   469       access_type : the name of the access type which should be checked
   469       access_type : the name of the access type which should be checked
   476       the soc.views.helper.list module. See the docstring for getListContent
   476       the soc.views.helper.list module. See the docstring for getListContent
   477       on how it uses it. The params dictionary is also passed as argument to
   477       on how it uses it. The params dictionary is also passed as argument to
   478       the _list method. See the docstring for _list on how it uses it.
   478       the _list method. See the docstring for _list on how it uses it.
   479     """
   479     """
   480 
   480 
   481     content = helper.lists.getListContent(request, params, filter)
   481     content = helper.lists.getListContent(request, params, filter, order=order)
   482     contents = [content]
   482     contents = [content]
   483 
   483 
   484     return self._list(request, params, contents, page_name)
   484     return self._list(request, params, contents, page_name)
   485 
   485 
   486   def _list(self, request, params, contents, page_name, context=None):
   486   def _list(self, request, params, contents, page_name, context=None):