summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeView.py
diff options
context:
space:
mode:
Diffstat (limited to 'DistUpgrade/DistUpgradeView.py')
-rw-r--r--DistUpgrade/DistUpgradeView.py8
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