##// END OF EJS Templates
transaction: allow finalizer to add finalizer...
marmoute -
r44556:2f1d6180 default
parent child Browse files
Show More
@@ -506,9 +506,12 b' class transaction(util.transactional):'
506 506 self._validator(self) # will raise exception if needed
507 507 self._validator = None # Help prevent cycles.
508 508 self._generatefiles(group=gengroupprefinalize)
509 categories = sorted(self._finalizecallback)
510 for cat in categories:
511 self._finalizecallback[cat](self)
509 while self._finalizecallback:
510 callbacks = self._finalizecallback
511 self._finalizecallback = {}
512 categories = sorted(callbacks)
513 for cat in categories:
514 callbacks[cat](self)
512 515 # Prevent double usage and help clear cycles.
513 516 self._finalizecallback = None
514 517 self._generatefiles(group=gengrouppostfinalize)
General Comments 0
You need to be logged in to leave comments. Login now