* morituri/extern/task/task.py:

Also stub out log calls on Runner.
This commit is contained in:
Thomas Vander Stichele
2011-08-07 18:24:01 +00:00
parent c8e5545776
commit a8c437307c
2 changed files with 23 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2011-08-07 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/extern/task/task.py:
Also stub out log calls on Runner.
2011-08-07 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/extern/task/task.py:

View File

@@ -385,13 +385,30 @@ class MultiCombinedTask(BaseMultiTask):
self.setProgress(float(self._stopped) / len(self.tasks))
BaseMultiTask.stopped(self, task)
class TaskRunner(object, log.Loggable):
class TaskRunner(object):
"""
I am a base class for task runners.
Task runners should be reusable.
"""
logCategory = 'TaskRunner'
### log stubs
def warning(self, message, *args):
pass
def info(self, message, *args):
pass
def debug(self, message, *args):
pass
def log(self, message, *args):
pass
def error(self, message, *args):
pass
def run(self, task):
"""
Run the given task.