app/soc/views/models/program.py
changeset 1857 febcaeb4234b
parent 1855 8c76c32a2392
child 1863 d5272c2ded9f
equal deleted inserted replaced
1856:44ccd96a5324 1857:febcaeb4234b
   238     return self.json(request, data)
   238     return self.json(request, data)
   239 
   239 
   240   @decorators.merge_params
   240   @decorators.merge_params
   241   @decorators.check_access
   241   @decorators.check_access
   242   def assignSlots(self, request, access_type, page_name=None,
   242   def assignSlots(self, request, access_type, page_name=None,
   243            params=None, **kwargs):
   243                   params=None, **kwargs):
   244     """View that allows to assign slots to orgs.
   244     """View that allows to assign slots to orgs.
   245     """
   245     """
   246 
   246 
   247     from soc.views.models import organization as organization_view
   247     from soc.views.models import organization as organization_view
   248 
   248 
   277     return self._list(request, org_params, contents, page_name, context)
   277     return self._list(request, org_params, contents, page_name, context)
   278 
   278 
   279   @decorators.merge_params
   279   @decorators.merge_params
   280   @decorators.check_access
   280   @decorators.check_access
   281   def showDuplicates(self, request, access_type, page_name=None,
   281   def showDuplicates(self, request, access_type, page_name=None,
   282            params=None, **kwargs):
   282                      params=None, **kwargs):
   283     """View in which a host can see which students have been assigned multiple slots.
   283     """View in which a host can see which students have been assigned multiple slots.
   284 
   284 
   285     For params see base.view.Public().
   285     For params see base.view.Public().
   286     """
   286     """
   287 
   287 
   314     return helper.responses.respond(request, template=template, context=context)
   314     return helper.responses.respond(request, template=template, context=context)
   315 
   315 
   316   @decorators.merge_params
   316   @decorators.merge_params
   317   @decorators.check_access
   317   @decorators.check_access
   318   def assignedProposals(self, request, access_type, page_name=None,
   318   def assignedProposals(self, request, access_type, page_name=None,
   319                  params=None, filter=None, **kwargs):
   319                         params=None, filter=None, **kwargs):
   320     """Returns a JSON dict containing all the proposals that would have
   320     """Returns a JSON dict containing all the proposals that would have
   321     a slot assigned for a specific set of orgs.
   321     a slot assigned for a specific set of orgs.
   322 
   322 
   323     The request.GET limit and offset determines how many and which
   323     The request.GET limit and offset determines how many and which
   324     organizations should be returned.
   324     organizations should be returned.