Author: jerome
Date: 2009-03-18 13:10:01 +0100 (Wed, 18 Mar 2009)
New Revision: 4132

Modified:
   
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
Log:
*Fixed a bug with boolean environnement parameters

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-18 12:03:48 UTC (rev 4131)
+++ 
software_suite_v2/software/gadgets/tuxdroid-gadget-skype/trunk/tuxdroid-skype-gadget/executables/tuxdroid-gadget-skype.py
   2009-03-18 12:10:01 UTC (rev 4132)
@@ -88,9 +88,9 @@
      if "tgp_pitch" in os.environ:
          pitch = int(os.environ["tgp_pitch"])
      if "tgp_quitSkype" in os.environ:
-         quitSkype = os.environ["tgp_quitSkype"]
+         quitSkype = (os.environ["tgp_quitSkype"] == "true")
      if "tgp_quitGadget" in os.environ:
-         quitGadget = os.environ["tgp_quitGadget"]
+         quitGadget = (os.environ["tgp_quitGadget"] == "true")
      if "tgp_startupStatus" in os.environ:
          status = os.environ["tgp_startupStatus"]
          
@@ -398,7 +398,6 @@
                      
self.__contactsList.append(user.Handle.encode("UTF-8").replace(" ", "_"))
          
          if len(self.__contactsDict) > 0:
-             print(self.__contactsDict)
              self.nextContact()
          else:
              print("message \"I cannot found online user or registered cell 
numbers\"")
@@ -484,11 +483,11 @@
              self.__resetTuxMotors()
              
              #Parameter defined by user.cusLoggedOut
-             if self.quitSkype :
+             if bool(self.quitSkype) :
                  self.__skype.Client.Shutdown()
                  self.__destroy()
              
-             if self.quitGadget:
+             if bool(self.quitGadget):
                  self.__destroy()
              
              self.__initTuxCallbacks()


------------------------------------------------------------------------------
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

Reply via email to