def pdf_specific_other_board(board_id, solution): """ Get the PDF of one board. :param board_id: The board ID to view. :type board_id: int :param solution: ``True`` iff the solution is requested. :type solution: bool :return: A PDF containing the requested board. :rtype: flask.Response """ return view_one_board(board_id, solution, PDF_BOARD_VIEW, True)
def view_specific_other_board(board_id, solution): """ View one board. The board will be displayed inside the website, i.e. the website menus and themes will be displayed with the board. :param board_id: The board ID to view. :type board_id: int :param solution: ``True`` iff the solution is requested. :type solution: bool :return: A page containing the board. :rtype: flask.Response """ return view_one_board(board_id, solution, INSITE_BOARD_VIEW, True)
def pdf_specific_board(board_id, solution): """ Get the PDF of one board. :note: This board **must** be owned by the logged in user. :param board_id: The board ID to view. :type board_id: int :param solution: ``True`` iff the solution is requested. :type solution: bool :return: A PDF containing the requested board. :rtype: flask.Response """ return view_one_board(board_id, solution, PDF_BOARD_VIEW, False)
def print_specific_other_board(board_id, solution): """ Print one board. This board 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_id: The board ID to view. :type board_id: int :param solution: ``True`` iff the solution is requested. :type solution: bool :return: A page containing the board. :rtype: flask.Response """ return view_one_board(board_id, solution, PRINT_BOARD_VIEW, True)