There seems to be the problem when trying to invoke shells with models
(checked with latest from launchpad). For example, admin and examples
both fail miserably, welcome works. The actual error seems to be
referencing things like request.env in some of the models. This
behaviour also happens to break cron, so it kind of makes me itchy
even if we correct it manually in the default apps. Am I the only one
with this problem ? Any recommendations how to go around this ?
python web2py.py -a 12345 -D 0 -S admin -M
default applications appear to be installed already
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2009
Version 1.62 rc2 (2009-05-11 23:25:54)
Python 2.5.2 on Linux-2.6.24-24-generic-x86_64-with-debian-lenny-sid
Database drivers available: SQLite3, MySQL
Traceback (most recent call last):
File "web2py.py", line 21, in <module>
start()
File "/usr/src/web2py_bzr/gluon/widget.py", line 748, in start
import_models=options.import_models, startfile=options.run)
File "/usr/src/web2py_bzr/gluon/shell.py", line 143, in run
_env = env(a, c=c, import_models=import_models)
File "/usr/src/web2py_bzr/gluon/shell.py", line 101, in env
run_models_in(environment)
File "/usr/src/web2py_bzr/gluon/compileapp.py", line 206, in
run_models_in
restricted(code, environment, layer)
File "/usr/src/web2py_bzr/gluon/restricted.py", line 115, in
restricted
raise RestrictedError(layer, code, '', environment)
gluon.restricted.RestrictedError: <gluon.restricted.RestrictedError
instance at 0x1414440>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---