[kupfer: 7/18] plugin_support: fix problems with save passwords in keyring lp1056686



commit a1272306b9e3ad3841c270aa8e0c66dec3377190
Author: Karol BÄdkowski <karol bedkowski gmail com>
Date:   Wed Sep 26 18:58:30 2012 +0200

    plugin_support: fix problems with save passwords in keyring lp1056686
    
    Keyring no longer support username as unicode
    
    Fix: LP1056686

 kupfer/plugin_support.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin_support.py b/kupfer/plugin_support.py
index 4d4f31c..2447cf9 100644
--- a/kupfer/plugin_support.py
+++ b/kupfer/plugin_support.py
@@ -183,7 +183,7 @@ class UserNamePassword (settings.ExtendedSetting):
 	def save(self, plugin_id, key):
 		''' save @user_password - store password in keyring and return username
 		to save in standard configuration file '''
-		keyring.set_password(plugin_id, self.username, self.password)
+		keyring.set_password(plugin_id, str(self.username), self.password)
 		return self.username
 
 def check_keyring_support():



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]