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 <richar...@gmail.com> wrote: > 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 <russell.mcmur...@gmail.com> wrote:> You might > need to import the DAL? > > > Fromhttp://groups.google.com/group/web2py/browse_thread/thread/159b44bfbb... > > > 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, Richard <richar...@gmail.com> wrote: > > > > I need to interact with the database from a module and I can't pass db > > > as an argument. (This is so I can use deferred on > > > GAE:http://groups.google.com/group/web2py/browse_thread/thread/d909260458...) > > > > Can this be done? > > > > Richard -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.