app/soc/views/models/base.py
changeset 438 af082c92ddda
parent 435 829fe8302a8b
child 439 0658c3c9a9dc
equal deleted inserted replaced
437:6db210684627 438:af082c92ddda
   290     context = helper.responses.getUniversalContext(request)
   290     context = helper.responses.getUniversalContext(request)
   291     context['page'] = page
   291     context['page'] = page
   292     entity = None
   292     entity = None
   293 
   293 
   294     try:
   294     try:
   295       key_fields = self._logic.getKeyFieldsFromKwargs(kwargs)
   295       key_fields = self._logic.getKeyFieldsFromDict(kwargs)
   296       entity = self._logic.getIfFields(key_fields)
   296       entity = self._logic.getIfFields(key_fields)
   297     except soc.logic.out_of_band.ErrorResponse, error:
   297     except soc.logic.out_of_band.ErrorResponse, error:
   298       template = self._params['edit_template']
   298       template = self._params['edit_template']
   299       error.message = error.message + self.DEF_CREATE_NEW_ENTITY_MSG % {
   299       error.message = error.message + self.DEF_CREATE_NEW_ENTITY_MSG % {
   300           'entity_type_lower' : self._params['name'].lower(),
   300           'entity_type_lower' : self._params['name'].lower(),