Esempio n. 1
0
 def tearDown(self):
     backup_fs.shutdown()
     key.ForgetMyKey()
     my_id.forgetLocalIdentity()
     settings.shutdown()
     os.remove('/tmp/_some_priv_key')
     bpio.rmdir_recursive('/tmp/.bitdust_tmp')
Esempio n. 2
0
 def stop(self):
     from storage import backup_fs
     from storage import backup_monitor
     from storage import backup_control
     from p2p import p2p_connector
     from main.config import conf
     p2p_connector.A().removeStateChangedCallback(self._on_p2p_connector_state_changed)
     backup_monitor.Destroy()
     backup_fs.shutdown()
     backup_control.shutdown()
     conf().removeCallback('services/backups/keep-local-copies-enabled')
     return True
Esempio n. 3
0
 def stop(self):
     from storage import backup_fs
     from storage import backup_monitor
     from storage import backup_control
     from p2p import p2p_connector
     from main.config import conf
     p2p_connector.A().removeStateChangedCallback(
         self._on_p2p_connector_state_changed)
     backup_monitor.Destroy()
     backup_fs.shutdown()
     backup_control.shutdown()
     conf().removeCallback('services/backups/keep-local-copies-enabled')
     return True
Esempio n. 4
0
 def stop(self):
     from storage import backup_fs
     from storage import backup_monitor
     from storage import backup_control
     from transport import callback
     from p2p import p2p_connector
     from main import events
     from main.config import conf
     events.remove_subscriber(self._on_key_erased, 'key-erased')
     events.remove_subscriber(self._on_my_identity_rotated, 'my-identity-rotated')
     callback.remove_inbox_callback(self._on_inbox_packet_received)
     if p2p_connector.A():
         p2p_connector.A().removeStateChangedCallback(self._on_p2p_connector_state_changed)
     backup_monitor.Destroy()
     backup_fs.shutdown()
     backup_control.shutdown()
     conf().removeConfigNotifier('services/backups/keep-local-copies-enabled')
     return True