Author: remi
Date: 2009-03-23 16:20:32 +0100 (Mon, 23 Mar 2009)
New Revision: 4183
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
Log:
* added a methods to get the list of the gadgets directories
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
===================================================================
---
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
2009-03-23 14:24:41 UTC (rev 4182)
+++
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
2009-03-23 15:20:32 UTC (rev 4183)
@@ -127,6 +127,15 @@
self.__autoDeployer.removeDirectory(directory)
#
--------------------------------------------------------------------------
+ # Get the list of the gadgets directories.
+ #
--------------------------------------------------------------------------
+ def getDirectories(self):
+ """Get the list of the gadgets directories.
+ @return: A list of string.
+ """
+ return self.__autoDeployer.getDirectories()
+
+ #
--------------------------------------------------------------------------
# Deploy the setted gadgets directories.
#
--------------------------------------------------------------------------
def deploy(self):
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
===================================================================
---
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
2009-03-23 14:24:41 UTC (rev 4182)
+++
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
2009-03-23 15:20:32 UTC (rev 4183)
@@ -146,6 +146,20 @@
self.__dirMutex.release()
#
--------------------------------------------------------------------------
+ # Get the list of the observed directories.
+ #
--------------------------------------------------------------------------
+ def getDirectories(self):
+ """Get the list of the observed directories.
+ @return: A list of string.
+ """
+ result = []
+ self.__dirMutex.acquire()
+ for directoryObserver in self.__directoryObservers:
+ result.append(directoryObserver[0].getDirectory())
+ self.__dirMutex.release()
+ return result
+
+ #
--------------------------------------------------------------------------
# Set the directory deployed event callback.
#
--------------------------------------------------------------------------
def setOnDirectoryDeployedCallback(self, funct):
------------------------------------------------------------------------------
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