Author: remi
Date: 2009-04-07 12:29:45 +0200 (Tue, 07 Apr 2009)
New Revision: 4382
Modified:
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/scheduler/TasksContainer.py
Log:
* added the method to load/auto-load a directory of tasks
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 10:29:17 UTC (rev 4381)
+++
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/scheduler/TasksContainer.py
2009-04-07 10:29:45 UTC (rev 4382)
@@ -123,3 +123,17 @@
"""
cmd = "scheduler/clear?"
return self._sendCommandBooleanResult(cmd)
+
+ #
--------------------------------------------------------------------------
+ # Load tasks from a directory.
+ #
--------------------------------------------------------------------------
+ def loadTasks(self, tasksDirectory):
+ """Load tasks from a directory.
+ @param tasksDirectory: Tasks directory.
+ @return: The success of the directory loading.
+ """
+ argsToSend = {
+ 'tasks_path' : tasksDirectory,
+ }
+ cmd = "scheduler/start?"
+ 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