diff options
| author | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-01-23 23:04:37 +0100 |
|---|---|---|
| committer | Sebastian Heinlein <sebastian.heinlein@web.de> | 2006-01-23 23:04:37 +0100 |
| commit | 1db0d7b67f9fdec6d721637cadfca8c292efb35b (patch) | |
| tree | fc18b9294873f218484126c16407ab5000f1f1f1 /DistUpgrade/DistUpgradeView.py | |
| parent | dfac943eddaebac9b9532acfd606fb3908e03bb8 (diff) | |
| parent | 4614765fb73d85f350f4f525a216386f01cbec0d (diff) | |
| download | python-apt-1db0d7b67f9fdec6d721637cadfca8c292efb35b.tar.gz | |
* Merged with Michael
Diffstat (limited to 'DistUpgrade/DistUpgradeView.py')
| -rw-r--r-- | DistUpgrade/DistUpgradeView.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeView.py b/DistUpgrade/DistUpgradeView.py index ba223a1b..abc5b340 100644 --- a/DistUpgrade/DistUpgradeView.py +++ b/DistUpgrade/DistUpgradeView.py @@ -61,6 +61,14 @@ class DistUpgradeView(object): def askYesNoQuestion(self, summary, msg): " ask a Yes/No question and return True on 'Yes' " pass + def confirmRestart(self): + " generic ask about the restart, can be overriden " + summary = _("Reboot required") + msg = _("The upgrade is finished now. " + "A reboot is required to " + "now, do you want to do this " + "now?") + return self.askYesNoQuestion(summary, msg) def error(self, summary, msg, extended_msg=None): " display a error " pass |
