[tuxdroid-svn] r4572 - softwares_suite_v3/kysoh/tuxware/api/python/trunk/tuxisalive/api/gadgets
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-04-21 10:28:08
|
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)
|