def delete(self, participant_dto): logging.debug('delete %s' % (participant_dto)) participant = ProjectParticipant.get(participant_dto._key) participant.delete()
def get(self, key): logging.debug('get %s' % (key)) return self.to_dto(ProjectParticipant.get(key))
def update(self, participant_dto): logging.debug('update %s' % (participant_dto)) participant = ProjectParticipant.get(participant_dto._key) participant.name = participant_dto.name participant.put() return self.to_dto(ProjectParticipant.get(participant_dto._key))