Can this be done?
Richard
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, 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...)
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...