perceval/backends/core/askbot.py
def __fetch_comments(self, question):
        """Fetch all the comments of an Askbot question and answers.

        The method fetchs the list of every comment existing in a question and
        its answers.

        :param question: item with the question itself

        :returns: a list of comments with the ids as hashes
        """
        comments = {}
        comments[question['id']] = json.loads(self.client.get_comments(question['id']))
        for object_id in question['answer_ids']:
            comments[object_id] = json.loads(self.client.get_comments(object_id))
        return comments
def __fetch_comments(self, question):
        comments = {}
        comments[question['id']] = json.loads(self.client.get_comments(question['id']))
        for object_id in question['answer_ids']:
            comments[object_id] = json.loads(self.client.get_comments(object_id))
        return comments
def __fetch_comments ( self , question ) : comments = { } comments [ question [ 'id' ] ] = json . loads ( self . client . get_comments ( question [ 'id' ] ) ) for object_id in question [ 'answer_ids' ] : comments [ object_id ] = json . loads ( self . client . get_comments ( object_id ) ) return comments
Fetch all the comments of an Askbot question and answers.

        The method fetchs the list of every comment existing in a question and
        its answers.

        :param question: item with the question itself

        :returns: a list of comments with the ids as hashes
Fetch all the comments of an Askbot question and answers .