client/rhel/rhn-client-tools/src/up2date_client/gui.py | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit 160626b10f2ced44b9f468b8ddb865736fca60a0
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri May 28 12:05:40 2010 +0200
596101 - skip the chooseChannelPage when going Back as well, if it should not be
shown.
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/gui.py
b/client/rhel/rhn-client-tools/src/up2date_client/gui.py
index 93df983..eb38c9c 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/gui.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/gui.py
@@ -58,6 +58,7 @@ class Gui(rhnregGui.StartPage, rhnregGui.ChooseServerPage,
rhnregGui.LoginPage,
"onChooseChannelPagePrepare" : self.onChooseChannelPagePrepare,
"onCreateProfilePagePrepare" : self.onCreateProfilePagePrepare,
"onCreateProfilePageNext" : self.onCreateProfilePageNext,
+ "onCreateProfilePageBack" : self.onCreateProfilePageBack,
"onReviewSubscriptionPagePrepare" :
self.onReviewSubscriptionPagePrepare,
"onReviewSubscriptionPageNext" :
self.onReviewSubscriptionPageNext,
"onProvideCertificatePageBack" :
self.onProvideCertificatePageBack,
@@ -259,6 +260,12 @@ class Gui(rhnregGui.StartPage, rhnregGui.ChooseServerPage,
rhnregGui.LoginPage,
if ret:
return ret
+ def onCreateProfilePageBack(self, page, dummy):
+ if rhnregGui.ChooseChannelPage.chooseChannelShouldBeShown(self):
+ self.druid.set_page(self.chooseChannelPage)
+ else:
+ self.druid.set_page(self.chooseServerPage)
+ return True
def onReviewSubscriptionPagePrepare(self, page, dummy):
self.reviewSubscriptionPagePrepare()