Author: remi
Date: 2009-08-06 09:45:11 +0200 (Thu, 06 Aug 2009)
New Revision: 5285
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
Log:
* Get the task default activation value 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-08-06 07:44:09 UTC (rev 5284)
+++
software_suite_v3/smart-core/smart-server/trunk/util/applicationserver/gadget/GadgetGenerator.py
2009-08-06 07:45:11 UTC (rev 5285)
@@ -607,9 +607,13 @@
ugcDataDict['tasks'] = {}
for i, task in enumerate(gadget.getTasks()):
nodeName = "task_%2d" % i
+ if task.isActivated():
+ isActivated = 'true'
+ else:
+ isActivated = 'false'
ugcDataDict['tasks'][nodeName] = {
'name' : task.getName(),
- 'activated' : 'false',
+ 'activated' : isActivated,
'weekMask' : task.getWeekMaskOF(),
'date' : task.getDate(),
'hoursBegin' : task.getHoursBegin(),
------------------------------------------------------------------------------
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