On Sat, Feb 9, 2013 at 11:53 PM, Niphlod <[email protected]> wrote:
> 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

Wait, what, seriously?!

:(

I can't see that pull request ATM (github is under maintenance), but I
did post an announcement here on the web2py list over 8 days ago…

Might've been nicer to tell me then.

Anyway, I have around 30 custom exceptions built on the
gluon.http.HTTP class, so will review the patch once github is back
online and see what I can integrate… I guess

-- 

--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to