Re: [web2py] Re: referencing request, session from module folder

2011-03-21 Thread Jonathan Lundell
On Mar 21, 2011, at 8:41 PM, yutaka kawate wrote: > There is no problem if run from dev_appserver.py. > Some wrong in session file system. > so the safe way is passing session,request as prameters. > thank you Yes. A module has its own namespace, so it doesn't have access to the caller's globals.

[web2py] Re: referencing request, session from module folder

2011-03-21 Thread yutaka kawate
There is no problem if run from dev_appserver.py. Some wrong in session file system. so the safe way is passing session,request as prameters. thank you woo, big earth quake again. the code is in db.py mymodules = local_import('mymodules.who') who = mymodules.Who(globals()) in modules.Who class

[web2py] Re: referencing request, session from module folder

2011-03-21 Thread Floyd
try use self in login(...) method: def login(self,) request = self.environment['request'] session = self.environment['session'] Bye, Floyd

[web2py] Re: referencing request, session from module folder

2011-03-21 Thread yutaka kawate
thank you but i am very sorry, i did typing miss. actually, i did so. it looks that system try to pickle response variable. i am trying environment['response'] = None 2011/3/22 Floyd > try use self in login(...) method: > def login(self,) > request = self.environment['request'] >