Author: remi
Date: 2009-03-25 11:14:05 +0100 (Wed, 25 Mar 2009)
New Revision: 4210

Modified:
   
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/Gadget.py
   
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetParameter.py
Log:
* change the parameter category to 'internals' instead of skipping the 
parameter from the gadget, when the target platform of the parameter don't 
match with the current os.
* added a method in the GadgetParameter class to set the category.

Modified: 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/Gadget.py
===================================================================
--- 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/Gadget.py
      2009-03-25 10:10:42 UTC (rev 4209)
+++ 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/Gadget.py
      2009-03-25 10:14:05 UTC (rev 4210)
@@ -62,10 +62,10 @@
                 if paramPlatform != "all":
                     if paramPlatform == "windows":
                         if os.name != "nt":
-                            continue
+                            gadgetParameter.setCategory('internals')
                     else:
                         if os.name == "nt":
-                            continue
+                            gadgetParameter.setCategory('internals')
                 self.__parameters.append(gadgetParameter)
         # Add some other parameters
         gadgetParameter = GadgetParameter(self, {

Modified: 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetParameter.py
===================================================================
--- 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetParameter.py
     2009-03-25 10:10:42 UTC (rev 4209)
+++ 
software_suite_v2/tuxware/tuxdroidserver/trunk/util/applicationserver/gadget/GadgetParameter.py
     2009-03-25 10:14:05 UTC (rev 4210)
@@ -138,6 +138,15 @@
         return self.__category
 
     # 
--------------------------------------------------------------------------
+    # Set the category.
+    # 
--------------------------------------------------------------------------
+    def setCategory(self, category):
+        """Set the category.
+        @param category: Category as string.
+        """
+        self.__category = category
+
+    # 
--------------------------------------------------------------------------
     # Get the enumerated values.
     # 
--------------------------------------------------------------------------
     def getEnumValues(self):


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