Hi folks,
I believe there is a bug in db.py. Below is the patch.
The effect of this bug is that you can't do:
import web
web.connect(...)
web.rollback() # gives an error like it should
web.transact() # you can't continue to do this now
The patch is:
=== modified file 'web/db.py'
--- web/db.py 2007-09-29 12:33:02 +0000
+++ web/db.py 2007-12-18 22:29:33 +0000
@@ -589,7 +589,7 @@
"""Rolls back a transaction."""
self.ctx.db_transaction -= 1
if self.ctx.db_transaction < 0:
- self.db_transaction = 0
+ self.web.db_transaction = 0
if care:
raise TransactionError, "not in a transaction"
else:
Cheers,
Berwyn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---