def get_synthesis(request):
synthesis_id = request.matchdict['id']
discussion = request.context
if synthesis_id == 'next_synthesis':
synthesis = discussion.get_next_synthesis()
else:
synthesis = Synthesis.get_instance(synthesis_id)
if not synthesis:
raise HTTPNotFound("Synthesis with id '%s' not found." % synthesis_id)
view_def = request.GET.get('view') or 'default'
user_id = authenticated_userid(request) or Everyone
return synthesis.generic_json(view_def, user_id, request.permissions)
# Update
评论列表
文章目录