Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/f/l/flex-and-python-test-HEAD/server/services/ProjectsService.py   flex-and-python-test(Download)
    def get(self, key):
        logging.debug('get %s' % (key))
        return self.to_dto(Project.get(key))
 
    def get_by_code(self, code):
    def update(self, project_dto):
        logging.debug('update %s' % (project_dto))
        project = Project.get(project_dto._key)
        project.name = project_dto.name
        project.department = int(project_dto.department)
        project.put()
        return self.to_dto(Project.get(project_dto._key))
    def delete(self, project_dto):
        logging.debug('delete %s' % (project_dto))
        project = Project.get(project_dto._key)
        project.delete()
 

src/f/l/flex-and-python-test-HEAD/server/services/ProjectParticipantsService.py   flex-and-python-test(Download)
    def insert(self, participant_dto):
        logging.debug('insert %s' % (participant_dto))
        participant = ProjectParticipant()
        participant.project = Project.get(participant_dto.project_key)
        participant.name = participant_dto.name