Author: remi
Date: 2009-04-06 19:14:43 +0200 (Mon, 06 Apr 2009)
New Revision: 4362
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/Task.py
software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/TaskDescription.py
Log:
* fixed some key names in the task dictionary
* typo fixes
* added a getter to the parent task in the TaskDescription class
Modified: software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/Task.py
===================================================================
--- software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/Task.py
2009-04-06 16:51:59 UTC (rev 4361)
+++ software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/Task.py
2009-04-06 17:14:43 UTC (rev 4362)
@@ -98,9 +98,9 @@
result = {
'id' : self.getDescription().getId(),
'name' : self.getDescription().getName(),
- 'task_desc' : self.getDescription().toString(),
+ 'taskDesc' : self.getDescription().toString(),
'type' : self.getDescription().getType(),
- 'weekMask' : self.getDescription().getWeekMaskString(),
+ 'weekMaskString' : self.getDescription().getWeekMaskString(),
'year' : self.getDescription().getYear(),
'month' : self.getDescription().getMonth(),
'day' : self.getDescription().getDay(),
Modified:
software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/TaskDescription.py
===================================================================
---
software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/TaskDescription.py
2009-04-06 16:51:59 UTC (rev 4361)
+++
software_suite_v2/tuxware/tuxdroidserver/trunk/util/scheduler/TaskDescription.py
2009-04-06 17:14:43 UTC (rev 4362)
@@ -37,6 +37,15 @@
self.__id = None
#
--------------------------------------------------------------------------
+ # Get the parent task.
+ #
--------------------------------------------------------------------------
+ def getParent(self):
+ """Get the parent task.
+ @return: A Task object.
+ """
+ return self.__parent
+
+ #
--------------------------------------------------------------------------
# Get the task name.
#
--------------------------------------------------------------------------
def getName(self):
@@ -119,7 +128,7 @@
#
--------------------------------------------------------------------------
def getWeekMaskString(self):
"""Get the week mask.
- @return: A string/
+ @return: A string.
"""
result = ""
for b in self.__dictionary['weekMask']:
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn