I haven't been clear enough. You can check/install stuff yourself based on detected versions (you could try/catch for PIL and install it from your app but that would feel wrong, wouldn't it ?). There is no way to 'suggest' or help installations by dependancies (either external like PIL, or internal like the web2py version or T2/T3).
For example, when generating/compiling the application bundle, the web2py version could be included in the application, so when you deploy, you get a notification if the application was originally created on a newer web2py version. Not sure how feasible it is, but a simple scan of import statements in controllers and modules could also build a checklist which in turn could be validated in the admin. Oh, and this would be yet another candidate for the 'nobody else does it' category :) On Mar 8, 4:39 pm, mdipierro <[email protected]> wrote: > Yes, request.env.web2py_version contains the current version > > On Mar 8, 1:42 am, Jonathan B <[email protected]> wrote: > > > 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 -~----------~----~----~----~------~----~------~--~---

