1.99.2, WinXP
Model works fine from browser and from integrated shell.
But there is problem from exec_environment, when model contains Auth:
os.chdir(r'c:\python27\Lib\site-packages\web2py')
from gluon.shell import exec_environment
cas = exec_environment('applications/cas/models/db.py')
I think this is not a bug.
Auth needs 'request' to build some paths and also will need it to do other
things.
The fact is that Auth was designed to run in a server-client environment,
where server will always have a request object. if you need to run in
exec_environment or in shell mode you will
I mean, Class based logic in modules.
--
Bruno Rocha
[http://rochacbruno.com.br]
3 matches
Mail list logo