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, 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.

Reply via email to