Re: [web2py] Re: wb2py with existing database

2012-03-30 Thread Anthony
Where should I run this scrip from? Does it matter? Just from the command line. I don't think it requires web2py at all. It's just using the db driver to inspect the db and generate the appropriate web2py code. Anthony

Re: [web2py] Re: wb2py with existing database

2012-03-30 Thread Ruben Orduz
Cool. Thanks for the confirm. It's bombing for me right now, but it's very likely due to the changes I made so that it would skip most types since it's mongoDB. On Fri, Mar 30, 2012 at 4:00 PM, Anthony abasta...@gmail.com wrote: Where should I run this scrip from? Does it matter? Just from the

[web2py] Re: wb2py with existing database

2012-03-29 Thread Anthony
Check out this script: http://code.google.com/p/web2py/source/browse/scripts/extract_pgsql_models.py. You may need to adapt it slightly for your particular database. Anthony On Thursday, March 29, 2012 1:14:56 PM UTC-4, rdodev wrote: All, Is it possible to have the DAL create/discover

Re: [web2py] Re: wb2py with existing database

2012-03-29 Thread Ruben Orduz
Let me check it out. Looks promising. On Thu, Mar 29, 2012 at 1:18 PM, Anthony abasta...@gmail.com wrote: Check out this script: http://code.google.com/p/web2py/source/browse/scripts/extract_pgsql_models.py. You may need to adapt it slightly for your particular database. Anthony On

[web2py] Re: wb2py with existing database

2012-03-29 Thread pbreit
Also one for MySQL: http://code.google.com/p/web2py/source/browse/scripts/extract_mysql_models.py

[web2py] Re: wb2py with existing database

2012-03-29 Thread Anthony
On Thursday, March 29, 2012 1:26:54 PM UTC-4, pbreit wrote: Also one for MySQL: http://code.google.com/p/web2py/source/browse/scripts/extract_mysql_models.py I think the other one is a little more thorough, so may be better even for MySQL.

Re: [web2py] Re: wb2py with existing database

2012-03-29 Thread Ruben Orduz
Nice. Actually I think tweaking the one Anthony provided will be easier since this DB is a mongoDB instance, and all fields have the same type (and no relationships to speak of). On Thu, Mar 29, 2012 at 1:26 PM, pbreit pbreitenb...@gmail.com wrote: Also one for MySQL: