degal/command.py
branchthreaded-tasks
changeset 88 b1b0939517e7
parent 76 e22d9f699081
equal deleted inserted replaced
87:a7a18893730d 88:b1b0939517e7
     1 """
     1 """
     2     Command implementations
     2     Command implementations
     3 """
     3 """
       
     4 
       
     5 import task
     4 
     6 
     5 import inspect, logging, traceback
     7 import inspect, logging, traceback
     6 
     8 
     7 class CommandList (object) :
     9 class CommandList (object) :
     8     """
    10     """
    65 
    67 
    66         self.command = command
    68         self.command = command
    67         self.config = config
    69         self.config = config
    68         self.gallery = gallery
    70         self.gallery = gallery
    69 
    71 
       
    72         # set up a task executor for this
       
    73         self.tasks = task.TaskManager(config)
       
    74 
    70     def __call__ (self, *args, **kwargs) :
    75     def __call__ (self, *args, **kwargs) :
    71         """
    76         """
    72             Run the command in this context
    77             Run the command in this context
    73         """
    78         """
    74 
    79