This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients ghaering, r.david.murray
Date 2010-05-28.17:54:07
SpamBayes Score 0.032951813
Marked as misclassified No
Message-id <1275069249.63.0.318211846232.issue8845@psf.upfronthosting.co.za>
In-reply-to
Content
I have a use case where I'd like to be able to check whether or not there is an uncommitted transaction.  The use case is a REPL database editor.  If the user issues the 'save' command a commit is done.  When they quit the application, I'd like to be able to prompt them with a 'save or discard' if and only if they have made changes since the last save.  Exposing the connection's inTransaction attribute would allow me to do this.  The attached patch does this as a read only attribute named in_transaction.  I'll add unit tests if this idea isn't rejected.
History
Date User Action Args
2010-05-28 17:54:09r.david.murraysetrecipients: + r.david.murray, ghaering
2010-05-28 17:54:09r.david.murraysetmessageid: <1275069249.63.0.318211846232.issue8845@psf.upfronthosting.co.za>
2010-05-28 17:54:08r.david.murraylinkissue8845 messages
2010-05-28 17:54:07r.david.murraycreate