[web2py] Re: how to access db from module

2010-03-10 Thread Russell
If you're on GAE then sessions are already in the database. I suppose you could do the same with the other globals (or at least the parts that auth uses). Why not pickle the stuff needed into the session itself? On Mar 10, 5:13 pm, Richard wrote: > ah I didn't know about this new feature - than

[web2py] Re: how to access db from module

2010-03-09 Thread Richard
ah I didn't know about this new feature - thanks. However my tables rely on auth, which relies on being passed globals() containing request, response, and session. Will I need to fake them? On Mar 10, 11:01 am, Russell wrote: > You might need to import the DAL? > > Fromhttp://groups.google.com

[web2py] Re: how to access db from module

2010-03-09 Thread Russell
You might need to import the DAL? >From >http://groups.google.com/group/web2py/browse_thread/thread/159b44bfbb634df2/83751f3fd6e51578 from gluon.sql import DAL, Field db=DAL('sqlite://storage',folder='/path/to/databases/folder/') db.define_table() etc. etc. On Mar 10, 12:43 pm,