[tuxdroid-svn] r4876 - in software_suite_v3/smart-core/smart-server/trunk/util/applicationserver:
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-06-23 16:38:49
|
Author: remi
Date: 2009-06-23 18:38:40 +0200 (Tue, 23 Jun 2009)
New Revision: 4876
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/ugc/UgcDescription.py
Log:
* fixed bug with gadgets without "on demand" functionality inserted in the menu.
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-06-23 16:37:15 UTC (rev 4875)
+++ software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py 2009-06-23 16:38:40 UTC (rev 4876)
@@ -558,7 +558,7 @@
'uuid' : ugcUuid,
'name' : ugcName,
'ttsName' : ugcTtsName,
- 'onDemandIsActivated' : 'true',
+ 'onDemandIsActivated' : gadget.getDescription().onDemandIsAble(),
}
# Parameters
ugcDataDict['parameters'] = {}
Modified: software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/ugc/UgcDescription.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/ugc/UgcDescription.py 2009-06-23 16:37:15 UTC (rev 4875)
+++ software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/ugc/UgcDescription.py 2009-06-23 16:38:40 UTC (rev 4876)
@@ -60,7 +60,7 @@
if dictionary.has_key('ttsName'):
self.__ttsName = dictionary['ttsName']
self.__uuid = dictionary['uuid']
- self.__onDemandIsActivated = "true"
+ self.__onDemandIsActivated = "false"
if dictionary.has_key('onDemandIsActivated'):
self.__onDemandIsActivated = dictionary['onDemandIsActivated']
|