[master 3/11] Check repository URL before leaving Source Spoke
wgwoods
installerbot-noreply at redhat.com
Wed Jul 22 21:32:47 UTC 2015
From: Jiri Konecny <jkonecny at redhat.com>
Iterate all repositories at on_back_clicked and check for url so user gets
warning about bad url before leaving the spoke.
And one small line wrap.
---
pyanaconda/ui/gui/spokes/source.py | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 8fc1749..67bb344 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -627,7 +627,8 @@ def _grabObjects(self):
# Call InputCheckHandler directly since this check operates on rows of a TreeModel
# instead of GtkEntry inputs. Updating the check is handled by the signal handlers
# connected to repoStore.
- self._duplicateRepoCheck = InputCheckHandler.add_check(self, self._repoStore, self._checkDuplicateRepos)
+ self._duplicateRepoCheck = InputCheckHandler.add_check(self, self._repoStore,
+ self._checkDuplicateRepos)
# Create a dictionary for the checks on fields in individual repos
# These checks will be added and removed as repos are added and removed from repoStore
@@ -1080,6 +1081,10 @@ def on_back_clicked(self, button):
"""If any input validation checks failed, keep the user on the screen.
Otherwise, do the usual thing."""
+ # Check repositories on bad url
+ for repo in self._repoStore:
+ self._repoChecks[repo[REPO_OBJ].repo_id].url_check.update_check_status()
+
failed_check = next(self.failed_checks, None)
# If the failed check is the duplicate repo check, focus the repo TreeView
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/2cc98bd37bbe63616c045cfa431db1c3e5428514
More information about the anaconda-patches
mailing list