Author: remi
Date: 2009-03-23 20:49:11 +0100 (Mon, 23 Mar 2009)
New Revision: 4190

Modified:
   
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/tuxdroid/Framework.py
Log:
* updated framework start methods

Modified: 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/tuxdroid/Framework.py
===================================================================
--- 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/tuxdroid/Framework.py
      2009-03-23 19:47:40 UTC (rev 4189)
+++ 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/tuxdroid/Framework.py
      2009-03-23 19:49:11 UTC (rev 4190)
@@ -99,12 +99,7 @@
             'pitch' : pitch,
         }
         cmd = "gadget_framework/start?"
-        ret = self._sendCommandBooleanResult(cmd, args)
-        if not ret:
-            return False
-        if not self._waitFor(ST_NAME_FW_RUN, "False", 3.0):
-            return False
-        return self._waitFor(ST_NAME_FW_RUN, "True", 10.0)
+        return self._sendCommandBooleanResult(cmd, args)
 
     # 
--------------------------------------------------------------------------
     # Update gadgets list on container deloyed event.
@@ -138,10 +133,7 @@
         @param pitch: TTS pitch.
         @return: The success.
         """
-        if not self.__start(gadgetsDirectory, language, country, locutor, 
pitch):
-            return False
-        if self._waitFor(ST_NAME_FW_CONTAINER_DEPLOYED, "True", 10.0):
-            time.sleep(1.0)
+        if self.__start(gadgetsDirectory, language, country, locutor, pitch):
             self.__updateGadgetsContainer()
             return True
         return False


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