Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 def on_authenticated(self, token):
     set_auth_token(token)
     self.sync_thread.start()
Ejemplo n.º 4
0
 def on_authenticated(self, token):
     set_auth_token(token)
     self.sync_thread.start()