[web2py] Bug : exec_environment vs. Auth

2011-12-05 Thread Mirek Zvolský
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')

Re: [web2py] Bug : exec_environment vs. Auth

2011-12-05 Thread Bruno Rocha
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

Re: [web2py] Bug : exec_environment vs. Auth

2011-12-05 Thread Bruno Rocha
I mean, Class based logic in modules. -- Bruno Rocha [http://rochacbruno.com.br]