'This method should be called by other tabs when
they want to show what request/response pair
is related to the vulnerability.'

def show_req_res_by_id(self, search_id):

    try:
        history_item = self._historyItem.read(search_id)
    except DBException:
        msg = _('The    id    %s    is    not    inside    the    database.')
        self._show_message(_('Error'), (msg % search_id))
        return
    try:
        history_item.request
        history_item.response
    except IOError as ioe:
        self._show_message(_('Error'), str(ioe))
        return
    self._req_res_viewer.request.show_object(history_item.request)
    self._req_res_viewer.response.show_object(history_item.response)
    if history_item.info:
        buff = self._req_res_viewer.info.get_buffer()
        buff.set_text(history_item.info)
        self._req_res_viewer.info.show()
    else:
        self._req_res_viewer.info.hide()
    self._req_res_viewer.set_sensitive(True)
