Bug in rollback

Bug #177299 reported by Berwyn Hoyt
2
Affects Status Importance Assigned to Milestone
web.py
Fix Released
Undecided
Anand Chitipothu

Bug Description

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. An error results

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:

version: all versions up to current head which is r204

Revision history for this message
Anand Chitipothu (anandology) wrote :

already fixed in webpy-0.23 branch.

duplicate of bug#125118

Changed in webpy:
assignee: nobody → anandology
milestone: none → 0.23
status: New → Fix Committed
Changed in webpy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.