[TransWarp] Strange EntityDM behavior

John Landahl john at landahl.org
Tue Oct 7 21:47:27 EDT 2003


On Tuesday 07 October 2003 01:32 pm, Phillip J. Eby wrote:
>
> It doesn't work "either way", actually.  Your code uses app.db() for the
> query at the end, which fails with an "OperationalError: database locked",
> because the TableDM is using its own DB connection.  Thus, there are two
> connections with ongoing transactions to the same file, which SQLite
> doesn't allow.

Ah, alright.  That would explain why nothing was saved to the database in the 
test program, which wasn't a problem in my actual application.  I didn't see 
any exceptions or failures, though.  Where did you see the OperationalError?



More information about the PEAK mailing list