aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-15 10:30:24 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-15 10:30:24 +0000
commit0c2185a46606c2ac3e41205fe92e6d5ba4ead1b9 (patch)
tree250e48970d8cfb3939a815b9e275d6c9c472373c /lib/python/Components
parentf90166ed3e8f94ef638a0f9adfa48cd1e455a637 (diff)
downloadenigma2-0c2185a46606c2ac3e41205fe92e6d5ba4ead1b9.tar.gz
enigma2-0c2185a46606c2ac3e41205fe92e6d5ba4ead1b9.zip
check for running jobs before shutting down/rebooting
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/Task.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/python/Components/Task.py b/lib/python/Components/Task.py
index 9a9d9fb7..659660e8 100644
--- a/lib/python/Components/Task.py
+++ b/lib/python/Components/Task.py
@@ -37,6 +37,9 @@ class Job(object):
progress = property(getProgress)
+ def getStatustext(self):
+ return { self.NOT_STARTED: _("Waiting"), self.IN_PROGRESS: _("In Progress"), self.FINISHED: _("Finished"), self.FAILED: _("Failed") }[self.status]
+
def task_progress_changed_CB(self):
self.state_changed()