[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH]MessageWindow for luksPassphrase validation
- From: HARA Hiroshi <hhara miraclelinux com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: [PATCH]MessageWindow for luksPassphrase validation
- Date: Wed, 12 Dec 2007 11:05:45 +0900
Hi,
I added MessageWindow(s) for luksPassphrase.
These MessageWindow(s) is shown up, when passphrase is
shorter than 8(self.minimumLength) characters or
passphrase does not match.
Would you review this attached patch, please?
thank you,
diff --git a/gui.py b/gui.py
index 2d9facf..845e883 100755
--- a/gui.py
+++ b/gui.py
@@ -646,12 +646,15 @@ class luksPassphraseWindow:
passphrase = self.passphraseEntry.get_text()
confirm = self.confirmEntry.get_text()
if passphrase != confirm:
- # FIXME: a messageWindow would help here
+ MessageWindow(_("Passphrase don't match"),
+ _("Passphrase do not match"), type = "warning")
self.confirmEntry.set_text("")
continue
if len(passphrase) < self.minimumLength:
- # FIXME: a messageWindow would help here
+ MessageWindow(_("Passphrase is short"),
+ _("Your passphrase is shorter than %s characters"
+ % (self.minimumLength, )), type = "warning")
self.passphraseEntry.set_text("")
self.confirmEntry.set_text("")
continue
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]