def check_new_version(myversion, version_url):
    try:
        from urllib import urlopen
        version = urlopen(version_url).read()
        pversion = parse_version(version)
        pmyversion = parse_version(myversion)
    except IOError:
        import traceback
        print traceback.format_exc()
        return -1, myversion

    if pversion[:3]+pversion[-6:] > pmyversion[:3]+pmyversion[-6:]:
        return True, version
    else:
        return False, version
Compares current web2py's version with the latest stable web2py version.
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/admin.py/check_new_version