Author: remi
Date: 2009-03-27 12:12:04 +0100 (Fri, 27 Mar 2009)
New Revision: 4215

Modified:
   
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
   
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
Log:
* the deployer working path is now set by the class which uses it.

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-25 15:09:52 UTC (rev 4214)
+++ 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetsContainer.py
    2009-03-27 11:12:04 UTC (rev 4215)
@@ -33,7 +33,7 @@
         self.__pitch = 130
         self.__gadgets = []
         self.__mutex = threading.Lock()
-        self.__autoDeployer = AutoDeployer()
+        self.__autoDeployer = AutoDeployer("workForGadgets")
         
self.__autoDeployer.setOnPluginDeployedCallback(self.__onPluginDeployed)
         
self.__autoDeployer.setOnPluginUndeployedCallback(self.__onPluginUndeployed)
         
self.__autoDeployer.setOnPluginDeploymentErrorCallback(self.__onPluginDeploymentError)

Modified: 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py
===================================================================
--- 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py  
    2009-03-25 15:09:52 UTC (rev 4214)
+++ 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/filesystem/AutoDeployer.py  
    2009-03-27 11:12:04 UTC (rev 4215)
@@ -25,7 +25,7 @@
     # 
--------------------------------------------------------------------------
     # Constructor of the class.
     # 
--------------------------------------------------------------------------
-    def __init__(self):
+    def __init__(self, workingDirectoryName):
         """Constructor of the class.
         """
         self.__dirMutex = threading.Lock()
@@ -33,7 +33,7 @@
         self.__eventMutex = threading.Lock()
         self.__directoryObservers = []
         self.__baseWorkingDirectory = os.path.join(GetOSTMPDir(),
-            "workForObservedDirectory")
+            workingDirectoryName)
         try:
             MKDirsF(self.__baseWorkingDirectory)
         except:


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

Reply via email to