* morituri/common/task.py:

* morituri/image/image.py:
	  Remove prints.  Describe tasks.
This commit is contained in:
Thomas Vander Stichele
2009-05-07 11:11:22 +00:00
parent c06814e139
commit e5ad3bde58
3 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
2009-05-07 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py:
* morituri/image/image.py:
Remove prints. Describe tasks.
2009-05-07 Thomas Vander Stichele <thomas at apestaart dot org>
* morituri/common/task.py:

View File

@@ -178,6 +178,7 @@ class MultiSeparateTask(BaseMultiTask):
I perform multiple tasks.
I track progress of each individual task, going back to 0 for each task.
"""
description = 'Doing various tasks separately'
def start(self, runner):
self.debug('MultiSeparateTask.start()')
@@ -194,7 +195,6 @@ class MultiSeparateTask(BaseMultiTask):
self.setProgress(value)
def described(self, description):
print 'description'
self.setDescription("%s (%d of %d) ..." % (
description, self._task, len(self.tasks)))
@@ -204,6 +204,7 @@ class MultiCombinedTask(BaseMultiTask):
I track progress as a combined progress on all tasks on task granularity.
"""
description = 'Doing various tasks combined'
_stopped = 0
### listener methods
@@ -330,7 +331,6 @@ class SyncRunner(TaskRunner):
self._report()
def stopped(self, task):
print 'stopped'
self.progressed(task, 1.0)
self._loop.quit()

View File

@@ -131,6 +131,7 @@ class AudioLengthTask(task.Task):
@ivar length: length of the decoded audio file, in audio frames.
"""
description = 'Getting length of audio track'
length = None
def __init__(self, path):