From: Ian B. <ia...@co...> - 2003-07-10 19:28:07
|
On Thu, 2003-07-10 at 10:06, Matt Goodall wrote: > Is the transaction support working in 0.4 and CVS? I just tried the > following: > > conn = PostgresConnection(...) > trans = conn.transaction() > print Person(1, trans) > > and got "AttributeError: 'Transaction' object has no attribute 'cache'" > > A quick look at the code implies that the Person ctor was expecting a > connection, not a transaction. No, I just extended the DBConnection interface to include a cache, and forgot to extend Transaction too. I added this fix to CVS, but my transaction test I added isn't working like I would think it should. Could you look at it? (Maybe I have to turn off autocommit or something...) Ian |