Author: remi
Date: 2009-08-01 14:36:09 +0200 (Sat, 01 Aug 2009)
New Revision: 5269

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
Log:
* "onDemandIsActivated" attribute could not be found in some cases.

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-08-01 12:19:39 UTC (rev 5268)
+++ 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
    2009-08-01 12:36:09 UTC (rev 5269)
@@ -678,11 +678,14 @@
         else:
             ugcDataDict['alertAttitune'] = "----"
         # Description
+        onDemandIsActivated = "false"
+        if tmpDataDict['description'].has_key('onDemandIsActivated'):
+            onDemandIsActivated = 
tmpDataDict['description']['onDemandIsActivated']
         ugcDataDict['description'] = {
             'uuid' : ugcUuid,
             'name' : ugcName,
             'ttsName' : ugcTtsName,
-            'onDemandIsActivated' : 
tmpDataDict['description']['onDemandIsActivated'],
+            'onDemandIsActivated' : onDemandIsActivated,
         }
         # Parameters
         ugcDataDict['parameters'] = tmpDataDict['parameters']


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to