Author: remi
Date: 2009-04-07 09:18:32 +0200 (Tue, 07 Apr 2009)
New Revision: 4376
Modified:
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/scheduler/TasksContainer.py
Log:
* added a method to clear all the tasks from the scheduler
Modified:
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/scheduler/TasksContainer.py
===================================================================
---
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/scheduler/TasksContainer.py
2009-04-07 06:50:17 UTC (rev 4375)
+++
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/scheduler/TasksContainer.py
2009-04-07 07:18:32 UTC (rev 4376)
@@ -113,3 +113,12 @@
taskObject = self.getTask(task)
if taskObject != None:
taskObject.remove()
+
+ #
--------------------------------------------------------------------------
+ # Remove all the tasks from the scheduler.
+ #
--------------------------------------------------------------------------
+ def clearTasks(self):
+ """Remove all the tasks from the scheduler.
+ """
+ cmd = "scheduler/clear?"
+ return self._sendCommandBooleanResult(cmd, argsToSend)
------------------------------------------------------------------------------
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