wait a second ..... you may be missing an important bit. 
DAL has no introspection whatsoever for retrieving existing tables if you 
have not defined them.
That doesn't mean that you have to define tables at every connection (it's 
easy, but let's assume you don't want to).
When you define tables on an empty database, some .table files are created 
in the databases/ folder .
They are pickles of the table structure, the same one DAL uses to compare 
with the existing model and - optionally - do a migration.
Once you have those .table files, you can skip the define_table() 
statements giving auto_import=True to the DAL connection (obviously the 
database uri has to be the same one with the tables in it). The only thing 
you may need is to pass along the folder where the .table files are with 
the folder parameter .

PS: an oauth2 implementation has been achieved by michele, it's a few days 
away to be included in the web2py source . 
https://github.com/web2py/web2py/pull/57

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to