app/soc/views/models/club_app.py
changeset 1115 0a723ff3d27c
parent 1085 0afbdd0905ef
child 1138 18ef39338211
equal deleted inserted replaced
1114:65c8d1bfe94b 1115:0a723ff3d27c
   250     context = helper.responses.getUniversalContext(request)
   250     context = helper.responses.getUniversalContext(request)
   251     context['page_name'] = page_name
   251     context['page_name'] = page_name
   252     entity = None
   252     entity = None
   253 
   253 
   254     try:
   254     try:
   255       key_fields = self._logic.getKeyFieldsFromDict(kwargs)
   255       key_fields = self._logic.getKeyFieldsFromFields(kwargs)
   256       entity = self._logic.getIfFields(key_fields)
   256       entity = self._logic.getFromKeyFieldsOr404(key_fields)
   257     except out_of_band.Error, error:
   257     except out_of_band.Error, error:
   258       return helper.responses.errorResponse(
   258       return helper.responses.errorResponse(
   259           error, request, template=params['error_public'], context=context)
   259           error, request, template=params['error_public'], context=context)
   260 
   260 
   261     get_dict = request.GET
   261     get_dict = request.GET