Hi group,
I am stuck with a database problem in my project and I am unable to figure
out, what is wrong. Basically, in *models* I define database ("*tb*") and
two *classes* ("*sip_test*" and "*resmon*"). The first class only runs
several shell commands, but the second class i overseeing the outcome of
the first class and therefore I run it in *separate thread* so it does not
block the whole w2p with its periodic tasks. In this second class I am
trying to *insert some values into database* ("tb") but I get "*Cannot
operate on a closed database*." error. If I try to insert same values from
controller it works fine, but not in any instance of this class. Could you
point me to direction where the problem could be and possibly how to solve
it?
Thanks in advance.
PS. I googled several thinks about threads and this db error, but they
confused me even more, so sorry, if the answer is in there and I dont see
it.