| 171 # See also http://math.andrej.com/2009/04/09/pythons-lambda-is-broken/ |
171 # See also http://math.andrej.com/2009/04/09/pythons-lambda-is-broken/ |
| 172 cb=(lambda status, errors=None, _index=index: |
172 cb=(lambda status, errors=None, _index=index: |
| 173 self.__status_callback(_index, status, errorlog=errors)) |
173 self.__status_callback(_index, status, errorlog=errors)) |
| 174 backups[index].set_status_update_callback(cb) |
174 backups[index].set_status_update_callback(cb) |
| 175 |
175 |
| 176 sleep.add_callback(self, self.refresh_ui) |
176 dreamtime.add_callback(self, self.refresh_ui) |
| 177 |
177 |
| 178 def __rebuild_menu(self): |
178 def __rebuild_menu(self): |
| 179 menu=[] |
179 menu=[] |
| 180 state=(backup.State.INACTIVE, backup.Errors.OK) |
180 state=(backup.State.INACTIVE, backup.Errors.OK) |
| 181 need_reconstruct=None |
181 need_reconstruct=None |