Author: remi
Date: 2009-07-31 16:43:44 +0200 (Fri, 31 Jul 2009)
New Revision: 5258

Modified:
   
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
Log:
* Fixed default locutor assignation on ugc creation.

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-31 13:31:59 UTC (rev 5257)
+++ 
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
    2009-07-31 14:43:44 UTC (rev 5258)
@@ -594,11 +594,15 @@
         i = 0
         for parameter in gadget.getParameters():
             if parameter.isVisible():
+                defaultValue = parameter.getDefaultValue(language)
+                if parameter.getName() == "locutor":
+                    if defaultValue == "":
+                        defaultValue = ugcContainer.getLocutor().replace("8k", 
"")
                 nodeName = "param_%2d" % i
                 i += 1
                 ugcDataDict['parameters'][nodeName] = {
                     'name' : parameter.getName(),
-                    'value' : parameter.getDefaultValue(language),
+                    'value' : defaultValue,
                 }
         # Tasks
         ugcDataDict['tasks'] = {}


------------------------------------------------------------------------------
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