Author: remi
Date: 2009-03-18 12:57:27 +0100 (Wed, 18 Mar 2009)
New Revision: 4127

Modified:
   software_suite_v2/tuxware/tuxdroidserver/trunk/TDSConfiguration.py
   software_suite_v2/tuxware/tuxdroidserver/trunk/TDSResourcesManager.py
Log:
* load tuxPath module in the configuration
* improved the configuration system of the resources

Modified: software_suite_v2/tuxware/tuxdroidserver/trunk/TDSConfiguration.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/TDSConfiguration.py  
2009-03-18 11:20:13 UTC (rev 4126)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/TDSConfiguration.py  
2009-03-18 11:57:27 UTC (rev 4127)
@@ -15,6 +15,7 @@
 import os
 
 from util.logger import *
+import util.misc.tuxPaths
 
 # 
==============================================================================
 # Class to retrieve the py file path.

Modified: software_suite_v2/tuxware/tuxdroidserver/trunk/TDSResourcesManager.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/TDSResourcesManager.py       
2009-03-18 11:20:13 UTC (rev 4126)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/TDSResourcesManager.py       
2009-03-18 11:57:27 UTC (rev 4127)
@@ -43,7 +43,7 @@
         # Shared variables with the overriders
         self.name = ""
         self.comment = ""
-        self.configuration = TDSResourceConf()
+        self.configurator = TDSResourceConf()
         self.fileName = ""
         # Configure
         self.configure()
@@ -59,6 +59,12 @@
     # 
--------------------------------------------------------------------------
     #
     # 
--------------------------------------------------------------------------
+    def getConfigurator(self):
+        return self.configurator
+
+    # 
--------------------------------------------------------------------------
+    #
+    # 
--------------------------------------------------------------------------
     def getXmlStructure(self):
         contentStruct = {
             'comment' : self.comment,
@@ -176,6 +182,15 @@
     # 
--------------------------------------------------------------------------
     #
     # 
--------------------------------------------------------------------------
+    def getConfiguration(self):
+        """Get the current configuration.
+        @return: A dictionary.
+        """
+        return self.itemsDict
+
+    # 
--------------------------------------------------------------------------
+    #
+    # 
--------------------------------------------------------------------------
     def load(self, confFileName, defaultConfigDict = {}):
         """ Load a configuration.
         @param confFileName: File name of the configuration.


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