On Monday, August 13, 2012 7:47:52 AM UTC-4, Hassan Alnatour wrote: > > you mean to redefine the tables in the dal like they are in the database ? >
Yes, in order to use the DAL with a database, the DAL needs to know what's in the database, which is the purpose of the table definitions. As mentioned, there is a script to introspect the database and automatically create the table definitions for you: http://code.google.com/p/web2py/source/browse/scripts/extract_pgsql_models.py . Anthony --