Exemplo n.º 1
0
 def on_password_store_finish(source, result, data):
     try:
         success = Secret.password_store_finish(result)
     except GLib.Error as e:
         logging.error('Failed to store password, Error: {}'.format(e))
         success = False
     if callback:
         callback(success)
Exemplo n.º 2
0
 def on_password_store_finish(source, result, data):
     try:
         success = Secret.password_store_finish(result)
     except GLib.Error as e:
         logging.error('Failed to store password, Error: {}'.format(e))
         success = False
     if callback:
         callback(success)
Exemplo n.º 3
0
		def on_result_ready(source, result, unused):
			loop.quit()
			stored = Secret.password_store_finish(result)
			self.assertEquals(True, stored)
Exemplo n.º 4
0
 def on_result_ready(source, result, unused):
     loop.quit()
     stored = Secret.password_store_finish(result)
     self.assertEquals(True, stored)
Exemplo n.º 5
0
 def stored(source, result, data):
     if not Secret.password_store_finish(result):
         logger.error('Could not store password into keyring')
Exemplo n.º 6
0
def on_password_stored(source, result, unused):
    Secret.password_store_finish(result)
Exemplo n.º 7
0
 def on_password_store_finish(source, result, data):
     try:
         success = Secret.password_store_finish(result)
     except GLib.Error as e:
         future.set_exception(e)
     future.set_result(success)
Exemplo n.º 8
0
 def callback(source, result):
     if not Secret.password_store_finish(result):
         log.error(_("Failed to store SMTP password in the keyring."))
     else:
         log.debug("SMTP password stored in the keyring.")
Exemplo n.º 9
0
 def _finishStore(self, source, result, callback):
     if not Secret.password_store_finish(result):
         print("Failed to store password")
     elif callback:
         callback()