def get_project_reviews(request):
"""RESTful version of getting all reviews of a task
"""
logger.debug('get_project_reviews is running')
project_id = request.matchdict.get('id', -1)
project = Project.query.filter(Project.id == project_id).first()
if not project:
transaction.abort()
return Response('There is no user with id: %s' % project_id, 500)
where_conditions = 'where "Review_Tasks".project_id = %(project_id)s' %\
{'project_id': project_id}
return get_reviews(request, where_conditions)
评论列表
文章目录