コード例 #1
0
ファイル: other_users_boards.py プロジェクト: elidaian/sudoku
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)
コード例 #2
0
ファイル: my_boards.py プロジェクト: elidaian/sudoku
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)
コード例 #3
0
ファイル: other_users_boards.py プロジェクト: elidaian/sudoku
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)
コード例 #4
0
ファイル: other_users_boards.py プロジェクト: elidaian/sudoku
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)