Author: remi
Date: 2009-03-30 20:14:28 +0200 (Mon, 30 Mar 2009)
New Revision: 4264

Modified:
   
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/tuxdroid/Framework.py
Log:
* gadget framework event are now automatically syndicated. 
(tux.framework.connect is now useless)

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-30 18:13:08 UTC (rev 4263)
+++ 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/tuxdroid/Framework.py
      2009-03-30 18:14:28 UTC (rev 4264)
@@ -31,6 +31,7 @@
         for statusName in SW_NAME_FRAMEWORK:
             self._insertNewEvent(statusName)
         self.__gadgetsContainer = GadgetsContainer(apiBase, apiBaseServer, {})
+        self.__syndicateToEvents()
         self._registerEvent(ST_NAME_FW_CONTAINER_DEPLOYED, None,
             self.__updateGadgetsContainer)
 
@@ -61,10 +62,9 @@
     # 
--------------------------------------------------------------------------
     def connect(self):
         """Connect this api to the framework.
+        This command is deprecated.
         """
-        self.__syndicateToEvents()
-        if self.isStarted():
-            self.__updateGadgetsContainer()
+        print "This command is deprecated."
 
     # 
--------------------------------------------------------------------------
     # Syndicate this api to the framework events.
@@ -87,7 +87,6 @@
         @param pitch: TTS pitch.
         @return: The success.
         """
-        self.__syndicateToEvents()
         if gadgetsDirectory == None:
             gadgetsDirectory = os.path.join(os.path.expanduser("~"), "MyTux",
                 "MyTuxGadgets")


------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to