From a8c437307c826149a512b4e69018002a90bd4218 Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Sun, 7 Aug 2011 18:24:01 +0000 Subject: [PATCH] * morituri/extern/task/task.py: Also stub out log calls on Runner. --- ChangeLog | 5 +++++ morituri/extern/task/task.py | 19 ++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 809da0d..9d0af88 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-08-07 Thomas Vander Stichele + + * morituri/extern/task/task.py: + Also stub out log calls on Runner. + 2011-08-07 Thomas Vander Stichele * morituri/extern/task/task.py: diff --git a/morituri/extern/task/task.py b/morituri/extern/task/task.py index 62a7a24..b0bf6f2 100644 --- a/morituri/extern/task/task.py +++ b/morituri/extern/task/task.py @@ -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.