'Compare version of local data file to the version from the server.
:return: A flag indicating whether the local data file is up-to-date
or not.
:rtype: int
Return  File status
1       The version of data file on server is newer.
0       The local data file is up-to-date.'

def new_version(self):

    local_ver = self._cur_ver
    server_ver = self._update['version']
    local_ver = local_ver.split('.')
    server_ver = server_ver.split('.')
    for (i, ver_num) in enumerate(local_ver):
        if (server_ver[i] > ver_num):
            return 1
    return 0
