Example #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()
Example #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()
Example #3
0
 def on_authenticated(self, token):
     set_auth_token(token)
     self.sync_thread.start()
Example #4
0
 def on_authenticated(self, token):
     set_auth_token(token)
     self.sync_thread.start()