In other words (concerning missing tables), you must have define_table() calls or auto_import=True in your DAL instantiation.
Otherwise, your db object won't recognize your tables. On Wed, Dec 19, 2012 at 12:43 PM, Niphlod <niph...@gmail.com> wrote: > if you don't define table and you don't have auto_import=True, why are you > expecting db.tables to show something ? > > Il giorno mercoledì 19 dicembre 2012 15:11:51 UTC+1, Kostas M ha scritto: >> >> Trying to use DAL in my functional_tests.py (sitting in the application >> directory), I get the following warning: >> >> In [1]: from gluon import DAL >> WARNING:root:Unable to import plural rules: No module named plural_rules >> >> Furthermore, the db seems to be empty, although it has proper tables, as >> seen by Sqliteman. >> "test.sqlite" is a copy from the storage.sqlite 'normal' database. >> For instance: >> >> In [9]: db = DAL('sqlite://test.sqlite', folder='databases', >> migrate_enabled=False) >> >> In [10]: db.tables >> Out[10]: [] >> >> What am I doing wrong? > > -- > > > --