degal/command.py
changeset 117 a2e4562deaab
parent 114 4096f8a7e63c
child 120 55cb7fc9c8fb
equal deleted inserted replaced
116:2d3721b9ffd0 117:a2e4562deaab
     1 """
     1 """
     2     Command implementations
     2     Command implementations
     3 """
     3 """
     4 
     4 
     5 import inspect, logging, traceback
     5 import inspect, logging, traceback, concurrent
     6 
     6 
     7 class CommandList (object) :
     7 class CommandList (object) :
     8     """
     8     """
     9         A list of available Commands
     9         A list of available Commands
    10 
    10 
    64         """
    64         """
    65 
    65 
    66         self.command = command
    66         self.command = command
    67         self.config = config
    67         self.config = config
    68         self.gallery = gallery
    68         self.gallery = gallery
       
    69 
       
    70         # conccurency
       
    71         self.concurrent = concurrent.Manager(thread_count=config.thread_count)
    69 
    72 
    70     def execute (self, *args, **kwargs) :
    73     def execute (self, *args, **kwargs) :
    71         """
    74         """
    72             Run the command in this context
    75             Run the command in this context
    73         """
    76         """