# HG changeset patch # User Sverre Rabbelier # Date 1239229164 0 # Node ID 7da77549bdebeeb69b23ccbf9f5c49d508cdc689 # Parent 1a0167169af3754116bbed0c35febe514be78488 Use the new self._getAcceptedOrgsList in slots view Patch by: Sverre Rabbelier diff -r 1a0167169af3 -r 7da77549bdeb app/soc/views/models/program.py --- a/app/soc/views/models/program.py Wed Apr 08 22:19:05 2009 +0000 +++ b/app/soc/views/models/program.py Wed Apr 08 22:19:24 2009 +0000 @@ -72,6 +72,8 @@ " profiles. You can learn more about each organization by" " visiting the links below.") + DEF_SLOTS_ALLOCATION_MSG = ugettext("Use this view to assign slots.") + def __init__(self, params=None): """Defines the fields and methods required for the base View class to provide the user with list, public, create, edit and delete views. @@ -352,12 +354,15 @@ program = program_logic.logic.getFromKeyFieldsOr404(kwargs) + description = self.DEF_SLOTS_ALLOCATION_MSG + filter = { 'scope': program, 'status': 'active', } - content = lists.getListContent(request, org_params, filter=filter) + content = self._getAcceptedOrgsList(description, org_params, filter, False) + contents = [content] return_url = "http://%(host)s%(index)s" % {