Commits

Jonathan Ballet committed 4d63f51

Passwords saved in Gnome Keyring now have a name.

You can easily distinguish them in Seahorse, for example, while previously, you
only had many "Network password" entries.

  • Participants
  • Parent commits feacdfc

Comments (0)

Files changed (2)

 * WinVaultKeyring now supports multiple passwords for the same service. Fixes
   #47.
 * Most of the tests don't require user interaction anymore.
+* Entries stored in Gnome Keyring appears now with a meaningful name if you try
+  to browser your keyring (for ex. with Seahorse)
 
 -----
 0.6.2

keyring/backend.py

         """Set password for the username of the service
         """
         try:
-            gnomekeyring.set_network_password_sync(None, username, service,
-                None, None, None, None, 0, password)
+            gnomekeyring.item_create_sync(
+                None, gnomekeyring.ITEM_NETWORK_PASSWORD,
+                "Password for '%s' on '%s'" % (username, service),
+                {'user': username, 'domain': service},
+                password, True)
         except gnomekeyring.CancelledError:
             # The user pressed "Cancel" when prompted to unlock their keyring.
             raise PasswordSetError("cancelled by user")