Hello!
I have trouble with running web shell. In app admin, when I choose
"shell" I get:
Traceback (most recent call last):
File "path_to_app/web2py/gluon/main.py", line 381, in wsgibase
serve_controller(request, response, session)
File "path_to_app/web2py/gluon/main.py", line 154, in
serve_controller
page = run_controller_in(request.controller, request.function,
environment)
File "path_to_app/web2py/gluon/compileapp.py", line 391, in
run_controller_in
restricted(code, environment, filename)
File "path_to_app/web2py/gluon/restricted.py", line 178, in
restricted
exec ccode in environment
File "path_to_app/web2py/applications/admin/controllers/shell.py",
line 64, in <module>
File "path_to_app/web2py/gluon/globals.py", line 96, in <lambda>
self._caller = lambda f: f()
File "path_to_app/web2py/applications/admin/controllers/shell.py",
line 8, in index
reset()
File "path_to_app/web2py/applications/admin/controllers/shell.py",
line 61, in reset
cache.ram('shell/'+app,lambda a=app,r=response:__shell(a,r),0)
File "path_to_app/web2py/gluon/cache.py", line 182, in __call__
value = f()
File "path_to_app/web2py/applications/admin/controllers/shell.py",
line 61, in <lambda>
cache.ram('shell/'+app,lambda a=app,r=response:__shell(a,r),0)
File "path_to_app/web2py/applications/admin/controllers/shell.py",
line 15, in __shell
shell.locals = env(app,True)
File "path_to_app/web2py/gluon/shell.py", line 124, in env
sys.exit(1)
SystemExit: 1
In welcome app it works normally. What is wrong?
best regards,
Mika