##// END OF EJS Templates
transaction: add a `hasfinalize` method...
marmoute -
r44508:8e095512 default
parent child Browse files
Show More
@@ -456,6 +456,12 b' class transaction(util.transactional):'
456 456 return self._anypending
457 457
458 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 465 def addfinalize(self, category, callback):
460 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