equal
deleted
inserted
replaced
214 context['error_message'] = self.DEF_INVITE_ERROR_MSG_FMT % ( |
214 context['error_message'] = self.DEF_INVITE_ERROR_MSG_FMT % ( |
215 params) |
215 params) |
216 return self.inviteGet(request, context, params, **kwargs) |
216 return self.inviteGet(request, context, params, **kwargs) |
217 |
217 |
218 # extract the key_name for the new request entity |
218 # extract the key_name for the new request entity |
219 key_fields = request_logic.logic.getKeyFieldsFromDict(request_fields) |
219 key_fields = request_logic.logic.getKeyFieldsFromFields(request_fields) |
220 key_name = request_logic.logic.getKeyNameForFields(key_fields) |
220 key_name = request_logic.logic.getKeyNameFromFields(key_fields) |
221 |
221 |
222 # create the request entity |
222 # create the request entity |
223 entity = request_logic.logic.updateOrCreateFromKeyName(request_fields, |
223 entity = request_logic.logic.updateOrCreateFromKeyName(request_fields, |
224 key_name) |
224 key_name) |
225 |
225 |
328 # make sure that this role becomes active once more in case this user |
328 # make sure that this role becomes active once more in case this user |
329 # has been reinvited |
329 # has been reinvited |
330 fields ['status'] = 'active' |
330 fields ['status'] = 'active' |
331 |
331 |
332 # get the key_name for the new entity |
332 # get the key_name for the new entity |
333 key_fields = self._logic.getKeyFieldsFromDict(fields) |
333 key_fields = self._logic.getKeyFieldsFromFields(fields) |
334 key_name = self._logic.getKeyNameForFields(key_fields) |
334 key_name = self._logic.getKeyNameFromFields(key_fields) |
335 |
335 |
336 # create new Role entity |
336 # create new Role entity |
337 entity = self._logic.updateOrCreateFromKeyName(fields, key_name) |
337 entity = self._logic.updateOrCreateFromKeyName(fields, key_name) |
338 |
338 |
339 # mark the request as completed |
339 # mark the request as completed |
500 context['error_message'] = self.DEF_REQUEST_ERROR_MSG_FMT % ( |
500 context['error_message'] = self.DEF_REQUEST_ERROR_MSG_FMT % ( |
501 params) |
501 params) |
502 return self.requestGet(request, context, params, **kwargs) |
502 return self.requestGet(request, context, params, **kwargs) |
503 |
503 |
504 # extract the key_name for the new request entity |
504 # extract the key_name for the new request entity |
505 key_fields = request_logic.logic.getKeyFieldsFromDict(request_fields) |
505 key_fields = request_logic.logic.getKeyFieldsFromFields(request_fields) |
506 key_name = request_logic.logic.getKeyNameForFields(key_fields) |
506 key_name = request_logic.logic.getKeyNameFromFields(key_fields) |
507 |
507 |
508 # create the request entity |
508 # create the request entity |
509 entity = request_logic.logic.updateOrCreateFromKeyName(request_fields, key_name) |
509 entity = request_logic.logic.updateOrCreateFromKeyName(request_fields, key_name) |
510 |
510 |
511 # TODO(ljvderijk) send out a message to alert the users able to process this request |
511 # TODO(ljvderijk) send out a message to alert the users able to process this request |