Author: remi
Date: 2009-04-07 12:45:46 +0200 (Tue, 07 Apr 2009)
New Revision: 4385

Modified:
   
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/attitunes/AttitunesContainer.py
Log:
* added a method to load the attitunes directory

Modified: 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/attitunes/AttitunesContainer.py
===================================================================
--- 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/attitunes/AttitunesContainer.py
    2009-04-07 10:36:54 UTC (rev 4384)
+++ 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/attitunes/AttitunesContainer.py
    2009-04-07 10:45:46 UTC (rev 4385)
@@ -142,3 +142,17 @@
         }
         cmd = "attitune_manager/remove_attitune?"
         return self._sendCommandBooleanResult(cmd, argsToSend)
+
+    # 
--------------------------------------------------------------------------
+    # Set the attitunes directory.
+    # 
--------------------------------------------------------------------------
+    def setAttitunesDirectory(self, attitunesDirectory):
+        """Load tasks from a directory and start the attitune manager.
+        @param attitunesDirectory: Attitunes directory.
+        @return: The success of the directory loading.
+        """
+        argsToSend = {
+            'attitunes_path' : attitunesDirectory,
+        }
+        cmd = "attitune_manager/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

Reply via email to