def update_project(request, project_id): project = Project.get_by_id(long(project_id)) if project is None: return None manager_id = request.get('manager-id') manager = User.get_by_id(long(manager_id)) project.name = request.get('name') project.description = request.get('description') project.manager = manager project.put() return project
def get_project(project_id): project = Project.get_by_id(long(project_id)) return project