Exemplo n.º 1
0
def pdf_set_of_other_boards(board_ids, solution):
    """
    Get the PDF of multiple boards.

    :param board_ids: The board IDs to view.
    :type board_ids: list of ints
    :param solution: ``True`` iff the solutions are requested.
    :type solution: bool
    :return: A PDF containing the requested boards.
    :rtype: flask.Response
    """
    return view_many_boards(board_ids, solution, PDF_BOARD_VIEW, True)
Exemplo n.º 2
0
def pdf_set_of_boards(board_ids, solution):
    """
    Get the PDF of multiple boards.

    :note: These boards **must** be owned by the logged in user.

    :param board_ids: The board IDs to view.
    :type board_ids: list of ints
    :param solution: ``True`` iff the solutions are requested.
    :type solution: bool
    :return: A PDF containing the requested boards.
    :rtype: flask.Response
    """
    return view_many_boards(board_ids, solution, PDF_BOARD_VIEW, False)
Exemplo n.º 3
0
def print_set_of_other_boards(board_ids, solution):
    """
    Print multiple boards.

    This boards will be displayed in a clean page that is dedicated for printing, i.e. the website menus and themes will
    not be shown in this page.

    :param board_ids: The board IDs to view.
    :type board_ids: list of ints
    :param solution: ``True`` iff the solutions are requested.
    :type solution: bool
    :return: A page containing the boards.
    :rtype: flask.Response
    """
    return view_many_boards(board_ids, solution, PRINT_BOARD_VIEW, True)
Exemplo n.º 4
0
def view_set_of_other_boards(board_ids, solution):
    """
    View multiple boards.

    The boards will be displayed inside the website, i.e. the website menus and themes will be displayed with the
    boards.

    :param board_ids: The board IDs to view.
    :type board_ids: list of ints
    :param solution: ``True`` iff the solutions are requested.
    :type solution: bool
    :return: A page containing the boards.
    :rtype: flask.Response
    """
    return view_many_boards(board_ids, solution, INSITE_BOARD_VIEW, True)