diff --git a/CHANGELOG b/CHANGELOG index c0df8ac7..208a41a9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,11 @@ + +## 2.15.x +- web2py does not support python 2.6 anymore +- py3.5 syntax compatible (see #1353 for details) +- dropped web shell from admin +- scheduler new feature: you can now specify intervals with cron + + ## 2.14.6 - Increased test coverage (thanks Richard) diff --git a/applications/admin/controllers/debug.py b/applications/admin/controllers/debug.py index 8a08dc83..4f04ab09 100644 --- a/applications/admin/controllers/debug.py +++ b/applications/admin/controllers/debug.py @@ -1,6 +1,5 @@ import os import sys -#import gluon.contrib.shell import gluon.dal import gluon.html import gluon.validators diff --git a/applications/admin/controllers/shell.py b/applications/admin/controllers/shell.py deleted file mode 100644 index e25bbdd6..00000000 --- a/applications/admin/controllers/shell.py +++ /dev/null @@ -1,51 +0,0 @@ -import sys -import gluon.contrib.shell -import code -import thread -import cgi -from gluon.shell import env -from gluon._compat import StringIO - -if DEMO_MODE or MULTI_USER_MODE: - session.flash = T('disabled in demo mode') - redirect(URL('default', 'site')) - -FE = 10 ** 9 - - -def index(): - app = request.args(0) or 'admin' - reset() - return dict(app=app) - - -def callback(): - app = request.args[0] - command = request.vars.statement - escape = command[:1] != '!' - history = session['history:' + app] = session.get( - 'history:' + app, gluon.contrib.shell.History()) - if not escape: - command = command[1:] - if command == '%reset': - reset() - return '*** reset ***' - elif command[0] == '%': - try: - command = session['commands:' + app][int(command[1:])] - except ValueError: - return '' - session['commands:' + app].append(command) - environ = env(app, True, extra_request=dict(is_https=request.is_https)) - output = gluon.contrib.shell.run(history, command, environ) - k = len(session['commands:' + app]) - 1 - #output = PRE(output) - #return TABLE(TR('In[%i]:'%k,PRE(command)),TR('Out[%i]:'%k,output)) - return cgi.escape('In [%i] : %s%s\n' % (k + 1, command, output)) - - -def reset(): - app = request.args(0) or 'admin' - session['commands:' + app] = [] - session['history:' + app] = gluon.contrib.shell.History() - return 'done' diff --git a/applications/admin/views/default.mobile/design.html b/applications/admin/views/default.mobile/design.html index bcdd3c37..5ee4011e 100644 --- a/applications/admin/views/default.mobile/design.html +++ b/applications/admin/views/default.mobile/design.html @@ -98,7 +98,6 @@ for c in controllers: controller_functions+=[c[:-3]+'/%s.html'%x for x in functi
{{=T("There are no controllers")}}
{{else:}}{{=T("There are no controllers")}}
{{else:}}