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