While working through the DAL section of the book, I am getting lazy_tables 
errors. Have I missed something? Is it a bug?

Here is the output from the shell, entered via welcome app controllers in 
the admin interface:


web2py Shell (2, 4, 1, 'alpha.2', datetime.datetime(2013, 1, 24, 10, 51, 1))

In [1] : db=DAL('sqlite://test.db')

In [2] : print db
<DAL db_uid="59cc7a14d8c00f65ad9fcfbb2abd12f4">

In [3] : print db._dbname
Traceback (most recent call last):
  File "/home/dhmorgan/servers/241/gluon/contrib/shell.py", line 234, in run
    exec compiled in statement_module.__dict__
  File "<string>", line 1, in <module>
  File "/home/dhmorgan/servers/241/gluon/dal.py", line 7563, in __getattr__
    if ogetattr(self,'_lazy_tables') and \
AttributeError: 'DAL' object has no attribute '_lazy_tables'

In [4] : print db._uri
Traceback (most recent call last):
  File "/home/dhmorgan/servers/241/gluon/contrib/shell.py", line 234, in run
    exec compiled in statement_module.__dict__
  File "<string>", line 1, in <module>
  File "/home/dhmorgan/servers/241/gluon/dal.py", line 7563, in __getattr__
    if ogetattr(self,'_lazy_tables') and \
AttributeError: 'DAL' object has no attribute '_lazy_tables'

-- 



Reply via email to