(self, ctxt, progress, total)
| 73 | self.func = func |
| 74 | |
| 75 | def callback(self, ctxt, progress, total): |
| 76 | try: |
| 77 | if self.func is not None: |
| 78 | return self.func(progress, total) |
| 79 | return True |
| 80 | except: |
| 81 | log_error(traceback.format_exc()) |
| 82 | |
| 83 | @property |
| 84 | def active(cls): |