Author: jerome
Date: 2009-03-13 10:36:31 +0100 (Fri, 13 Mar 2009)
New Revision: 4045
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/resources/gadget.pot
Log:
* Filtering contacts lits, only online and cell numbers users are retreived now.
. Added an exception : in case of no user or cell found then quit the gadget
and start tts message.
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
2009-03-13 09:22:20 UTC (rev 4044)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
2009-03-13 09:36:31 UTC (rev 4045)
@@ -336,12 +336,16 @@
self.__contactsDict = {}
self.__currentContactIndex = -1
for user in self.__skype.Friends:
- if len(user.FullName.encode("UTF-8")) > 0:
- self.__contactsDict[user.FullName.encode("UTF-8").replace("
", "_")] = user.Handle.encode("UTF-8")
-
self.__contactsList.append(user.FullName.encode("UTF-8").replace(" ", "_"))
+ if user.OnlineStatus not in [Skype4Py.olsUnknown,
Skype4Py.olsOffline, Skype4Py.olsInvisible]:
+ if len(user.FullName.encode("UTF-8")) > 0:
+
self.__contactsDict[user.FullName.encode("UTF-8").replace(" ", "_")] =
user.Handle.encode("UTF-8")
+
self.__contactsList.append(user.FullName.encode("UTF-8").replace(" ", "_"))
if len(self.__contactsDict) > 0:
self.nextContact()
+ else:
+ print("message \"I cannot found online user or registered cell
numbers\"")
+ self.__destroy()
return self.__contactsList
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/resources/gadget.pot
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/resources/gadget.pot
2009-03-13 09:22:20 UTC (rev 4044)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/resources/gadget.pot
2009-03-13 09:36:31 UTC (rev 4045)
@@ -15,3 +15,6 @@
msgid "I cannot get connected to your Skype. Please, verify you are connected
and verify I can access to skype."
msgstr ""
+
+msgid "I cannot found online user or registered cell numbers"
+msgstr ""
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn