equal
deleted
inserted
replaced
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(), |