Use the new self._getAcceptedOrgsList in slots view
authorSverre Rabbelier <srabbelier@gmail.com>
Wed, 08 Apr 2009 22:19:24 +0000
changeset 2128 7da77549bdeb
parent 2127 1a0167169af3
child 2129 f6ca1647bff7
Use the new self._getAcceptedOrgsList in slots view Patch by: Sverre Rabbelier
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" % {