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']
------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn