app/soc/views/models/base.py
changeset 668 77f9a6ea6e67
parent 663 c2dcae606699
child 677 c8f24e3078b8
equal deleted inserted replaced
667:f96095df1433 668:77f9a6ea6e67
   468     redirect = params['delete_redirect']
   468     redirect = params['delete_redirect']
   469 
   469 
   470     return http.HttpResponseRedirect(redirect)
   470     return http.HttpResponseRedirect(redirect)
   471 
   471 
   472   def select(self, request, view, redirect, page_name=None, params=None):
   472   def select(self, request, view, redirect, page_name=None, params=None):
   473     """Displays a list page allowing the user to select an entity
   473     """Displays a list page allowing the user to select an entity.
   474 
   474 
   475     After having selected the Sponsor, the user is redirected to the
   475     After having selected the Sponsor, the user is redirected to the
   476     'create a new program' page with the scope_path set appropriately.
   476     'create a new program' page with the scope_path set appropriately.
   477 
   477 
   478     Params usage:
   478     Params usage:
   586       template = params['create_template']
   586       template = params['create_template']
   587 
   587 
   588     return helper.responses.respond(request, template, context)
   588     return helper.responses.respond(request, template, context)
   589 
   589 
   590   def getParams(self):
   590   def getParams(self):
   591     """Returns this view's params attribute
   591     """Returns this view's params attribute.
   592     """
   592     """
   593 
   593 
   594     return self._params
   594     return self._params
   595 
   595 
   596   def getSidebarLinks(self, request, params=None):
   596   def getSidebarLinks(self, request, params=None):