Well I tried that, and it gave me:

In [2] : db(db.legacy_db.table).select()
Traceback (most recent call last):
  File "/opt/web-apps/web2py/gluon/contrib/shell.py", line 233, in run
    exec compiled in statement_module.__dict__
  File "<string>", line 1, in <module>
  File "/opt/web-apps/web2py/gluon/dal.py", line 6343, in __getattr__
    return self[key]
  File "/opt/web-apps/web2py/gluon/dal.py", line 6337, in __getitem__
    return dict.__getitem__(self, str(key))
KeyError: 'legacy_db

I believe that the DAL doesn't like how my database is made, so I'm just 
going to rebuild it with the ORM in web2py.'

On Friday, April 20, 2012 3:26:07 PM UTC-5, Khalil KHAMLICHI wrote:
>
> db(db.legacy-db.table).select()
>
> I think you are forgetting "db." in front of table name.
>  

Reply via email to