Author: remi
Date: 2009-07-17 11:13:31 +0200 (Fri, 17 Jul 2009)
New Revision: 5119
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
Log:
* Don't save the default value of parameter "locutor" on gadget
create/duplicate.
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
===================================================================
---
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
2009-07-15 12:40:06 UTC (rev 5118)
+++
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
2009-07-17 09:13:31 UTC (rev 5119)
@@ -393,6 +393,12 @@
gadgetInfoDict, iconFileName, helpFileContent =
GadgetGenerator.pluginToGadgetRequestDataToDict(requestData, plugin)
# Complete info dict to create a gadget.xml
gadgetInfoDict['description']['uuid'] = gadgetUuid
+ # Remove language parameter
+ if gadgetInfoDict.has_key("parameters"):
+ for key in gadgetInfoDict['parameters'].keys():
+ if gadgetInfoDict['parameters'][key]['name'] == 'locutor':
+ gadgetInfoDict['parameters'][key]["defaultValue"] = ''
+ break
gadgetXmlDict = {
'gadget' : gadgetInfoDict
}
@@ -459,6 +465,12 @@
gadgetInfoDict['description']['uuid'] = gadgetUuid
gadgetInfoDict['description']['name'] = gadgetName
gadgetInfoDict['description']['ttsName'] = gadgetName
+ # Remove language parameter
+ if gadgetInfoDict.has_key("parameters"):
+ for key in gadgetInfoDict['parameters'].keys():
+ if gadgetInfoDict['parameters'][key]['name'] == 'locutor':
+ gadgetInfoDict['parameters'][key]["defaultValue"] = ''
+ break
gadgetXmlDict = {
'gadget' : gadgetInfoDict
}
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn