'Initialize a new TUI session.
* Load server list from a configuration file under working directory.
* Try to load the hosts data file under working directory if it
exists.
.. note:: IF hosts data file does not exists correctly in current
working directory, a warning message box would popup. And
operations to change the hosts file on current system could be
done only until a new data file has been downloaded.
.. seealso:: :meth:`~tui.curses_d.CursesDaemon.session_daemon` method
in :class:`~tui.curses_d.CursesDaemon`.
.. seealso:: :meth:`~gui.hostsutil.HostsUtil.init_main` in
:class:`~gui.hostsutil.HostsUtil` class.'

def __init__(self):

    super(HostsUtil, self).__init__()
    self.settings[0][2] = CommonUtil.set_network('network.conf')
    try:
        self.set_platform()
        RetrieveData.unpack()
        RetrieveData.connect_db()
        self.set_info()
        self.set_func_list()
    except IOError:
        self.messagebox('No    data    file    found!    Press    F6    to    get    data    file    first.', 1)
    except BadZipfile:
        self.messagebox('Incorrect    Data    file!    Press    F6    to    get    a    new    data    file    first.', 1)
