On Tue, Mar 03, 2009 at 05:55:43PM +0000, wzins...@comcast.net wrote: > class sqlmeta: > print 'class sqlmeta' > idName = 'title_id' > lazyUpdate = False > autoCommit = True
sqlmeta doesn't have 'autoCommit' attribute. (It'd also be helpful to send python code properly formatted.) > book_a._connection.debug = True > book_a._connection.autoCommit = True It is too late to set this after creating a row. The settings should be set on the 'konnection' before inserting. > This code actually appears to work with no errors, but I can run it > many times with no duplicate rows because nothing gets inserted into > the database. No commit has been done. > I tried wrapping it all in a transaction and doing a > commit, but that didn't help. It'd be interesting to see the code. > It's not a permission problem Certainly not - with a permission problem you'd get an exception. > Note I instantiate two books. I don't want to, but I'm forced to > because if I try to give it a non-zero first key I get the error: > "sqlobject.main.SQLObjectNotFound: The object titles by the ID 0 > does not exist" ....even though I'm providing a non-zero key! Please show the debugging output and the entire traceback. Oleg. -- Oleg Broytmann http://phd.pp.ru/ p...@phd.pp.ru Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss