[web2py] Re: Can't access scheduler_task table ['DAL' object has no attribute 'scheduler_task']

2016-05-02 Thread Niphlod
how did you "import" the database ? referencing a "current"... same applies to the scheduler On Monday, May 2, 2016 at 4:54:00 AM UTC+2, Marty Jones wrote: > > how would I import the scheduler into a module to do that? > > On Sunday, May 1, 2016 at 12:00:44 PM UTC-4, Niphlod wrote: >> >> why

[web2py] Re: Can't access scheduler_task table ['DAL' object has no attribute 'scheduler_task']

2016-05-01 Thread Marty Jones
how would I import the scheduler into a module to do that? On Sunday, May 1, 2016 at 12:00:44 PM UTC-4, Niphlod wrote: > > why don't you use queue_task() ? > > On Friday, April 29, 2016 at 9:17:37 PM UTC+2, Marty Jones wrote: >> >> I seem to have resolved it by switching "db = current.db" to "db

[web2py] Re: Can't access scheduler_task table ['DAL' object has no attribute 'scheduler_task']

2016-05-01 Thread Niphlod
why don't you use queue_task() ? On Friday, April 29, 2016 at 9:17:37 PM UTC+2, Marty Jones wrote: > > I seem to have resolved it by switching "db = current.db" to "db = > current.globalenv['db']" > > On Friday, April 29, 2016 at 12:05:34 PM UTC-4, Marty Jones wrote: >> >> I'm defining some

[web2py] Re: Can't access scheduler_task table ['DAL' object has no attribute 'scheduler_task']

2016-04-29 Thread Marty Jones
I seem to have resolved it by switching "db = current.db" to "db = current.globalenv['db']" On Friday, April 29, 2016 at 12:05:34 PM UTC-4, Marty Jones wrote: > > I'm defining some functions in the modules folder that need to access and > insert rows into the db. in the controller, I define

[web2py] Re: Can't access scheduler_task table ['DAL' object has no attribute 'scheduler_task']

2016-04-29 Thread Dave S
On Friday, April 29, 2016 at 9:05:34 AM UTC-7, Marty Jones wrote: > > I'm defining some functions in the modules folder that need to access and > insert rows into the db. in the controller, I define "current.db = db" then > in the module I import the db as seen below. > > I define the function