[kupfer: 9/23] plugin.skype: creating leaves in Skype object



commit d9b12bf2fa2560ab99d02f7bb0692de32cce5c92
Author: Karol BÄ?dkowski <karol bedkowsk+gh gmail com>
Date:   Tue Nov 17 13:26:15 2009 +0100

    plugin.skype: creating leaves in Skype object

 kupfer/plugin/skype.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/plugin/skype.py b/kupfer/plugin/skype.py
index 50e2bb9..51bc382 100644
--- a/kupfer/plugin/skype.py
+++ b/kupfer/plugin/skype.py
@@ -126,7 +126,8 @@ class Skype(object):
 			displayname = _parse_response(displayname, 'USER %s DISPLAYNAME' % user)
 			status = skype.Invoke('GET USER %s ONLINESTATUS' % user)
 			status = _parse_response(status, 'USER %s ONLINESTATUS' % user)
-			self._friends.append((user, fullname, status, displayname))
+			contact = Contact((displayname or fullname or user), user, status)
+			self._friends.append(contact)
 
 	@property
 	def friends(self):
@@ -238,8 +239,7 @@ class ContactsSource(AppLeafContentMixin, Source):
 
 	def get_items(self):
 		pretty.print_debug(__name__, 'ContactsSource', 'get_items')
-		for handle, fullname, status, displayname in Skype.get().friends:
-			yield Contact((displayname or fullname or handle), handle, status)
+		return Skype.get().friends
 
 	def get_icon_name(self):
 		return 'skype'



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