degal/command.py
branchthreaded-tasks
changeset 88 b1b0939517e7
parent 76 e22d9f699081
--- a/degal/command.py	Thu Jun 11 00:37:01 2009 +0300
+++ b/degal/command.py	Thu Jun 11 20:39:59 2009 +0300
@@ -2,6 +2,8 @@
     Command implementations
 """
 
+import task
+
 import inspect, logging, traceback
 
 class CommandList (object) :
@@ -67,6 +69,9 @@
         self.config = config
         self.gallery = gallery
 
+        # set up a task executor for this
+        self.tasks = task.TaskManager(config)
+
     def __call__ (self, *args, **kwargs) :
         """
             Run the command in this context