Thanks Nico
On Mar 19, 12:54 pm, Nico de Groot <ndegr...@chello.nl> wrote: > This patch > (1) repairs a small format error in the code that checks the version : > %*s* which caused the check upgrade button to fail > (2) restores the upgrade button for windows running from source. The > last change is not tested on multiple machines, but the feature is > experimental anyway. But feel free to reject this part of the patch. > > Will send patch by separate mail. > > Nico de Groot > > --- applications\admin\controllers\default_1_94_5.py Fri Mar 18 > 19:24:24 2011 > +++ applications\admin\controllers\default.py Sat Mar 19 17:35:56 2011 > @@ -76,8 +76,8 @@ > return A(T('Unable to check for upgrades'), _href=WEB2PY_URL) > elif new_version != True: > return A(T('web2py is up to date'), _href=WEB2PY_URL) > - elif platform.system().lower() in ('windows','win32','win64'): > - return SPAN('You should upgrade to version %' % > version_number) > + elif platform.system().lower() in ('windows','win32','win64') and > os.path.exists("web2py.exe"): > + return SPAN('You should upgrade to version %s' % > version_number) > else: > return sp_button(URL('upgrade_web2py'), T('upgrade now')) \ > + XML(' <strong class="upgrade_version">%s</strong>' % > version_number)