def on_remove_authenticated(self): self.sync_thread.quit() set_auth_token('') session = get_db_session() session.query(models.Note).delete(synchronize_session='fetch', ) session.query(models.Resource).delete(synchronize_session='fetch', ) session.query(models.Notebook).delete(synchronize_session='fetch', ) session.query(models.Tag).delete(synchronize_session='fetch', ) session.commit()
def on_remove_authenticated(self): self.sync_thread.quit() set_auth_token('') session = get_db_session() session.query(models.Note).delete( synchronize_session='fetch', ) session.query(models.Resource).delete( synchronize_session='fetch', ) session.query(models.Notebook).delete( synchronize_session='fetch', ) session.query(models.Tag).delete( synchronize_session='fetch', ) session.commit()
def on_authenticated(self, token): set_auth_token(token) self.sync_thread.start()