Show More
@@ -118,6 +118,7 b' class transaction(object):' | |||
|
118 | 118 | |
|
119 | 119 | @active |
|
120 | 120 | def close(self): |
|
121 | '''commit the transaction''' | |
|
121 | 122 | self.count -= 1 |
|
122 | 123 | if self.count != 0: |
|
123 | 124 | return |
@@ -131,6 +132,9 b' class transaction(object):' | |||
|
131 | 132 | |
|
132 | 133 | @active |
|
133 | 134 | def abort(self): |
|
135 | '''abort the transaction (generally called on error, or when the | |
|
136 | transaction is not explicitly committed before going out of | |
|
137 | scope)''' | |
|
134 | 138 | self._abort() |
|
135 | 139 | |
|
136 | 140 | def _abort(self): |
General Comments 0
You need to be logged in to leave comments.
Login now