synthesis.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:idealoom 作者: conversence 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号