On Mar 6, 9:45 pm, AchipA <[email protected]> wrote:
> Another issue, somewhat linked to this is the version of web2py
> itself. Is there a way for the app to detect that the web2py version
> it is run on is older than it requires ?

>From checking the Admin application code (web2py\web2py\applications
\admin\controllers\default.py):


WEB2PY_VERSION_URL = 'http://mdp.cti.depaul.edu/examples/default/
version'


        myversion = request.env.web2py_version
        version = urllib.urlopen(WEB2PY_VERSION_URL).read()

        if version > myversion:
            return A(T('A new version of web2py is available'),
                     _href=WEB2PY_URL)
        else:
            return A(T('web2py is up to date'), _href=WEB2PY_URL)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to