Re: [web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Dave S
On Wednesday, February 7, 2018 at 10:52:11 PM UTC-8, Johann Spies wrote: > > Apologies for waisting your time. The new day has opened my eyes. I > had a db.db.sometable (result of a manual copy and paste) later on in > the function which caused this db-problem. > > There is still another

Re: [web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Johann Spies
Apologies for waisting your time. The new day has opened my eyes. I had a db.db.sometable (result of a manual copy and paste) later on in the function which caused this db-problem. There is still another problem but I will first try and out what is going on here. Thanks for your attention to

Re: [web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Johann Spies
On 7 February 2018 at 22:14, Dave S wrote: > > > I thought web2py always ran the model files before calling the controller > function, > part of the overhead of each call (and the reason for lazy tables and tables > defined in modules). > > Johann, is this function in the

Re: [web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Dave S
On Wednesday, February 7, 2018 at 6:23:55 AM UTC-8, Richard wrote: > > You define table into za_arts_and_reviews()?? > > If you it may occurs that this controller is call before db.py where you > define your db connection... > I thought web2py always ran the model files before calling the

Re: [web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Richard Vézina
You define table into za_arts_and_reviews()?? If you it may occurs that this controller is call before db.py where you define your db connection... Richard On Wed, Feb 7, 2018 at 9:18 AM, Johann Spies wrote: > No. > > Regards > Johann > > On 7 February 2018 at 16:10,

Re: [web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Johann Spies
No. Regards Johann On 7 February 2018 at 16:10, Richard Vézina wrote: > Do you make a module function call without passing the db to it?? > > Richard > > On Wed, Feb 7, 2018 at 8:42 AM, Johann Spies wrote: >> >> Version

Re: [web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Richard Vézina
Do you make a module function call without passing the db to it?? Richard On Wed, Feb 7, 2018 at 8:42 AM, Johann Spies wrote: > Version 2.16.1-stable+timestamp.2017.11.14.05.54.25 > > > Traceback (most recent call last): > File "/home/js/web2py/gluon/restricted.py",

[web2py] 'DAL' object has no attribute 'db'

2018-02-07 Thread Johann Spies
Version 2.16.1-stable+timestamp.2017.11.14.05.54.25 Traceback (most recent call last): File "/home/js/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) AttributeError: 'DAL' object has no attribute 'db' During handling of the above exception, another exception