text: remove the needless complexity in the screen switching loop.
This has been possible since a3570474c83aea26477b9826e1201b4d68e9476a, notice that now there is always exactly one class per interactive TUI step.
---
pyanaconda/text.py | 92 +++++++++++++++++-----------------------------------
1 files changed, 30 insertions(+), 62 deletions(-)
className = %s")
+ % className,
+ buttons=[_("Exit"), _("Retry")])
+
+ if rc == string.lower(_("Exit")):
+ sys.exit(0)
+
+ win = nextWindow()
+ rc = win(self.screen, instance)
+
+ if rc in [INSTALL_OK, INSTALL_NOOP]:
+ anaconda.dispatch.gotoNext()
+ elif rc == INSTALL_BACK:
if anaconda.dispatch.canGoBack():
anaconda.dispatch.gotoPrev()
else:
@@ -546,10 +517,7 @@ class InstallInterface(InstallInterfaceBase):
"from here. You will have to try "
"again."),
buttons=[_("OK")])
- else:
- anaconda.dispatch.gotoNext()
-
- (step, args) = anaconda.dispatch.currentStep()
+ (step, instance) = anaconda.dispatch.currentStep()
self.screen.finish()
--
1.7.1.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
07-14-2010, 04:21 PM
"Brian C. Lane"
text: remove the needless complexity in the screen switching loop.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/14/2010 05:24 AM, Ales Kozumplik wrote:
> This has been possible since a3570474c83aea26477b9826e1201b4d68e9476a, notice that now there is always exactly one class per interactive TUI step.
> ---
> pyanaconda/text.py | 92 +++++++++++++++++-----------------------------------
> 1 files changed, 30 insertions(+), 62 deletions(-)
> + (file, className) = stepToClasses[step]
> + while 1:
Looks like there is an indent problem here, and a tab in the 1st line.
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
07-14-2010, 05:25 PM
Chris Lumens
text: remove the needless complexity in the screen switching loop.
> This has been possible since a3570474c83aea26477b9826e1201b4d68e9476a, notice that now there is always exactly one class per interactive TUI step.
This is a complicated one, and it's plenty easy to screw this stuff up.
Have you thoroughly tested by going back and forth in text mode?
Stepping forward several steps and then coming back to the first one?
Kickstart installs that are missing certain steps? Interactive
kickstart installs? Upgrades?
- Chris
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
07-15-2010, 08:45 AM
Ales Kozumplik
text: remove the needless complexity in the screen switching loop.
On 07/14/2010 06:21 PM, Brian C. Lane wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/14/2010 05:24 AM, Ales Kozumplik wrote:
This has been possible since a3570474c83aea26477b9826e1201b4d68e9476a, notice that now there is always exactly one class per interactive TUI step.
---
pyanaconda/text.py | 92 +++++++++++++++++-----------------------------------
1 files changed, 30 insertions(+), 62 deletions(-)
+ (file, className) = stepToClasses[step]
+ while 1:
Looks like there is an indent problem here, and a tab in the 1st line.
The problem is just the tab: both lines have the correct indentation but
the first one already had a tab when I was modifying it (and I didn't
reindent it like the second line), so when the + is inserted in the
patch the tab gets squeezed in the first line but the spaces get shiften
in the second line.
Anyway, tab removed.
Ales
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
07-15-2010, 09:21 AM
Ales Kozumplik
text: remove the needless complexity in the screen switching loop.
On 07/14/2010 07:25 PM, Chris Lumens wrote:
This has been possible since a3570474c83aea26477b9826e1201b4d68e9476a, notice that now there is always exactly one class per interactive TUI step.
This is a complicated one, and it's plenty easy to screw this stuff up.
I think all the old complexity was there only because it was possible to
have those 'substeps'.
Have you thoroughly tested by going back and forth in text mode?
Yes.
Stepping forward several steps and then coming back to the first one?
Yes.
Kickstart installs that are missing certain steps?
Yes.
Interactive
kickstart installs?
No, until yesterday I didn't know we had such a crazy feature but it's
going down isn't it?
Upgrades?
I tried just now and it says 'the root of the previously installed
system was not found' (even though I could boot Fedora from the machine
previously).
Ales
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
07-16-2010, 02:29 PM
Chris Lumens
text: remove the needless complexity in the screen switching loop.
> >This is a complicated one, and it's plenty easy to screw this stuff up.
> >
>
> I think all the old complexity was there only because it was
> possible to have those 'substeps'.
Entirely possible.
> > Interactive
> >kickstart installs?
>
> No, until yesterday I didn't know we had such a crazy feature but
> it's going down isn't it?
Yes, yes it is. I wasn't sure about killing it until after responding
to you earlier.
In light of the testing, I say push it.
- Chris
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list