'Start operations after downloading data file.
.. note:: This method is the slot responses to the finish_trigger
signal :attr:`refresh`, :attr:`error` from an instance of
:class:`~gui._update.QSubFetchUpdate` class while downloading is
finished.
:param refresh: An flag indicating whether the downloading progress is
successfully finished or not. Default by 1.
:type refresh: int.
:param error: An flag indicating whether the downloading
progress is successfully finished or not. Default by 0.
:type error: int
.. seealso:: :attr:`finish_trigger` in
:class:`~gui._update.QSubFetchUpdate` class.'

def finish_fetch(self, refresh=1, error=0):

    self._down_flag = 0
    if error:
        self.set_down_progress(0, unicode(_translate('Util', 'Error', None)))
        try:
            os.remove(self.filename)
        except:
            pass
        self.warning_download()
        msg_title = 'Warning'
        msg = unicode(_translate('Util', 'Incorrect    Data    file!\nPlease    use    the    "Download"    key    to    \nfetch    a    new    data    file.', None))
        self.set_message(msg_title, msg)
        self.set_conn_status(0)
    else:
        self.set_down_progress(100, unicode(_translate('Util', 'Download    Complete', None)))
        self.refresh_info(refresh)
    self.set_fetch_finish_btns(error)
