equal
deleted
inserted
replaced
340 categories = sorted(self._pendingcallback) |
340 categories = sorted(self._pendingcallback) |
341 for cat in categories: |
341 for cat in categories: |
342 # remove callback since the data will have been flushed |
342 # remove callback since the data will have been flushed |
343 any = self._pendingcallback.pop(cat)(self) |
343 any = self._pendingcallback.pop(cat)(self) |
344 self._anypending = self._anypending or any |
344 self._anypending = self._anypending or any |
|
345 self._anypending |= self._generatefiles(suffix='.pending') |
345 return self._anypending |
346 return self._anypending |
346 |
347 |
347 @active |
348 @active |
348 def addfinalize(self, category, callback): |
349 def addfinalize(self, category, callback): |
349 """add a callback to be called when the transaction is closed |
350 """add a callback to be called when the transaction is closed |