Author: remi
Date: 2009-04-21 12:27:47 +0200 (Tue, 21 Apr 2009)
New Revision: 4572

Modified:
   
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/Gadget.py
Log:
* updated methods to update the gadgets parameters of the configured gadgets

Modified: 
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/Gadget.py
===================================================================
--- 
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/Gadget.py
  2009-04-21 10:27:28 UTC (rev 4571)
+++ 
softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets/Gadget.py
  2009-04-21 10:27:47 UTC (rev 4572)
@@ -484,11 +484,12 @@
     # 
--------------------------------------------------------------------------
     # Update the parameters of the configured gadget.
     # 
--------------------------------------------------------------------------
-    def updateParameters(self, parameters = {}):
+    def updateParameters(self, parameters = {}, hiddenParameters = []):
         """Update the parameters of the configured gadget.
         @param parameters: Parameters of the gadget as dictionary.
             if no parameter is defined the default ones are set.
             if a parameter is wrong or missing the default one is set.
+        @param hiddenParameters: Hidden parameters list.
         @return: The success of the command.
             * This method only work with a configured gadget.
         """
@@ -501,9 +502,13 @@
             args += "%s=%s|" % (key, parameters[key])
         if len(args) > 0:
             args = args[:-1]
+        hParams = ""
+        for h in hiddenParameters:
+            hParams += "%s|" % h
         argsToSend = {
             'uuid' : self.__description.getUuid(),
             'parameters' : args,
+            'hiddenParameters' : hParams,
         }
         cmd = "gadget_framework/update_configuration_parameters?"
         return self._sendCommandBooleanResult(cmd, argsToSend)


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to