예제 #1
0
파일: boards.py 프로젝트: pepe5/fanboi2
def board_all(request):
    """Display a single board with a list of all its topic.

    :param request: A :class:`pyramid.request.Request` object.

    :type request: pyramid.request.Request
    :rtype: dict
    """
    board = board_get(request)
    topics = board_topics_get(request).all()
    override = _get_override(request, board=board)
    return locals()
예제 #2
0
파일: boards.py 프로젝트: pepe5/fanboi2
def board_show(request):
    """Display a single board with its related topics.

    :param request: A :class:`pyramid.request.Request` object.

    :type request: pyramid.request.Request
    :rtype: dict
    """
    board = board_get(request)
    topics = board_topics_get(request).limit(10)
    override = _get_override(request, board=board)
    return locals()