Hi,

I'm new to web2py. I have this requirement - on loading a page, I want
to trigger a background process automatically. Since the process is
time-consuming, I don't want user to wait.

This is what I tried - running the background process as a separate
thread. This results in

ProgrammingError: Cannot operate on a closed database.

I read another thread with the same subject, it spoke of "refreshing
the value of DB in environment dictionary". How can I do that? And why
do I need to do it?

What is the better way to achieve what I want?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to