Author: remi
Date: 2009-03-13 13:20:06 +0100 (Fri, 13 Mar 2009)
New Revision: 4053
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/resources/01_robot_system/resourceGadgetFramework.py
Log:
* added a GadgetsContainer object in the framework resource in order to
manipulate easily the gadgets structure in the server.
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/resources/01_robot_system/resourceGadgetFramework.py
===================================================================
---
software_suite_v2/tuxware/tuxdroidserver/trunk/resources/01_robot_system/resourceGadgetFramework.py
2009-03-13 12:13:59 UTC (rev 4052)
+++
software_suite_v2/tuxware/tuxdroidserver/trunk/resources/01_robot_system/resourceGadgetFramework.py
2009-03-13 12:20:06 UTC (rev 4053)
@@ -4,6 +4,8 @@
import subprocess
+from util.gadgets.GadgetsContainer import GadgetsContainer
+
# Framework events/statuses
ST_NAME_FW_RUN = "framework_run"
ST_NAME_FW_CONTAINER_DEPLOYED = "framework_container_deployed"
@@ -185,6 +187,7 @@
eventsHandler.insert(statusName)
clientsManager.addDefaultExcludedEvent(statusName)
eventsHandler.getEventHandler(ST_NAME_FW_RUN).updateState("False")
+ self.__gadgetsContainer = GadgetsContainer({})
def stop(self):
self.__gadgetFramework.stop()
@@ -377,6 +380,7 @@
'/%s/help.html' % newKey)
self.__gadgetsDictionary[idx]['description']['help_file'] =
'/%s/help.html' % newKey
self.__tmpGadgetsDictionary = {}
+ self.__gadgetsContainer._update(self.__gadgetsDictionary)
def __containerStart(self, gadgetsPath):
cmd = "CONTAINER"
@@ -472,6 +476,12 @@
"""
self.__onGagdetStoppedCallback = funct
+ def getGadgetsContainer(self):
+ """Get the gadgets container.
+ @return: A GadgetsContainer object.
+ """
+ return self.__gadgetsContainer
+
def startFramework(self, gadgetsPath, language, country, locutor, pitch):
"""Start the gadget framework.
@param gadgetsPath: Path of the gadgets directory.
------------------------------------------------------------------------------
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