perceval/backends/core/askbot.py
def __fetch_question(self, question):
        """Fetch an Askbot HTML question body.

        The method fetchs the HTML question retrieving the
        question body of the item question received

        :param question: item with the question itself

        :returns: a list of HTML page/s for the question
        """
        html_question_items = []

        npages = 1
        next_request = True

        while next_request:
            try:
                html_question = self.client.get_html_question(question['id'], npages)
                html_question_items.append(html_question)
                tpages = self.ab_parser.parse_number_of_html_pages(html_question)

                if npages == tpages:
                    next_request = False

                npages = npages + 1
            except requests.exceptions.TooManyRedirects as e:
                logger.warning("%s, data not retrieved for question %s", e, question['id'])
                next_request = False

        return html_question_items
def __fetch_question(self, question):
        html_question_items = []

        npages = 1
        next_request = True

        while next_request:
            try:
                html_question = self.client.get_html_question(question['id'], npages)
                html_question_items.append(html_question)
                tpages = self.ab_parser.parse_number_of_html_pages(html_question)

                if npages == tpages:
                    next_request = False

                npages = npages + 1
            except requests.exceptions.TooManyRedirects as e:
                logger.warning("%s, data not retrieved for question %s", e, question['id'])
                next_request = False

        return html_question_items
def __fetch_question ( self , question ) : html_question_items = [ ] npages = 1 next_request = True while next_request : try : html_question = self . client . get_html_question ( question [ 'id' ] , npages ) html_question_items . append ( html_question ) tpages = self . ab_parser . parse_number_of_html_pages ( html_question ) if npages == tpages : next_request = False npages = npages + 1 except requests . exceptions . TooManyRedirects as e : logger . warning ( "%s, data not retrieved for question %s" , e , question [ 'id' ] ) next_request = False return html_question_items
Fetch an Askbot HTML question body.

        The method fetchs the HTML question retrieving the
        question body of the item question received

        :param question: item with the question itself

        :returns: a list of HTML page/s for the question
Fetch an Askbot HTML question body .