in libmozdata/bugzilla.py [0:0]
def __get_bugs_for_history_comment(self):
"""Get history and comment (if there are some handlers) after a search query"""
if (
self.historyhandler.isactive()
or self.commenthandler.isactive()
or self.attachmenthandler.isactive()
):
bugids = []
bughandler = self.bughandler
def __handler(bug, bd):
bughandler.handle(bug)
bd.append(bug["id"])
self.bughandler = Handler(__handler, bugids)
self.__get_bugs_by_search()
self.wait_bugs()
self.bughandler = bughandler
self.bugids = bugids
if self.historyhandler.isactive():
self.history_results = []
self.__get_history()
if self.commenthandler.isactive():
self.comment_results = []
self.__get_comment()
if self.attachmenthandler.isactive():
self.attachment_results = []
self.__get_attachment()
else:
self.__get_bugs_by_search()