Show More
@@ -456,6 +456,12 b' class transaction(util.transactional):' | |||||
456 | return self._anypending |
|
456 | return self._anypending | |
457 |
|
457 | |||
458 | @active |
|
458 | @active | |
|
459 | def hasfinalize(self, category): | |||
|
460 | """check is a callback already exist for a category | |||
|
461 | """ | |||
|
462 | return category in self._finalizecallback | |||
|
463 | ||||
|
464 | @active | |||
459 | def addfinalize(self, category, callback): |
|
465 | def addfinalize(self, category, callback): | |
460 | """add a callback to be called when the transaction is closed |
|
466 | """add a callback to be called when the transaction is closed | |
461 |
|
467 |
General Comments 0
You need to be logged in to leave comments.
Login now