Hmm OK, I didn't know that. I'll be more careful in the future. Thanks.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because
OK I think I solved it. I don't know why this works but it does.
Basically you can only say "*{{include 'web2py_ajax.html'}}*" in you views
once, so if your view extends another one it shouldn't have "*{{include
'web2py_ajax.html'}}*" in it again. Maybe someone smarter than me can say
why it d
What I get is:
loading...
I'm using Windows 7 64-bit and tried with both IE10 and Chrome 30. Same
story everywhere.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report I
Hi all,
I downloaded the new 2.7.4 source and copied only my files into a new app
so I'm pretty sure everything like web2py.js is the new version. Anyway, I
have this in my one view:
{{ =LOAD( 'display', 'load_data' , times = 'infinity', timeout = 5000, ajax
= True) }}
and no matter what I pu
cron doesn't seem to work on 2.3.2 running as a Windows 7 service. Not sure
how to find the problem.
--
OK, I'll try try it with my own UUID rather.
I don't need my task to run at exactly 5 second intervals, it's a simple
task which updates only a few parameters but it needs to happen quite
regularly. I think the scheduler works well enough for my purposes here, I
don't expect it to be precise.
Hi again,
Thanks for the tips! What I ended up doing is creating a model file
containing the following:
import datetime
if db(db.scheduler_task).isempty():
db.scheduler_task.update_or_insert(db.scheduler_task.task_name=='my_function',
application_name='my_app',
Hi Niphlod. Thanks so much for the reply. I suspected I had the*
queue_task*method in the wrong place and I did.
Is there isn't any neat way of automatically checking that these tasks are
in the database and adding them if they're not there? I don't really want
to have to access a controller to
I have created a *scheduler.py *in /models/ which looks something like this:
def my_function():
### function body ###
scheduler = Scheduler(db)
scheduler.queue_task(
function='my_function',
task_name = 'my_function',
repeats = 0, # unlimited runs
period = 300 # every 5 minutes
)
9 matches
Mail list logo