FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 01-29-2010, 04:07 PM
Peter Jones
 
Default Add missing methods to RescueInterface

Some methods have been added to other intfs but not to RescueInterface;
they must be added there as well.
---
rescue.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/rescue.py b/rescue.py
index 4ae4d6f..7f48150 100644
--- a/rescue.py
+++ b/rescue.py
@@ -102,6 +102,12 @@ class RescueInterface:
w.pop()
return (passphrase, isglobal)

+ def resetInitializeDiskQuestion(self):
+ self._initLabelAnswers = {}
+
+ def resetReinitInconsistentLVMQuestion(self):
+ self._inconsistentLVMAnswers = {}
+
def shutdown (self):
pass

--
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 01-29-2010, 05:38 PM
Chris Lumens
 
Default Add missing methods to RescueInterface

> diff --git a/rescue.py b/rescue.py
> index 4ae4d6f..7f48150 100644
> --- a/rescue.py
> +++ b/rescue.py
> @@ -102,6 +102,12 @@ class RescueInterface:
> w.pop()
> return (passphrase, isglobal)
>
> + def resetInitializeDiskQuestion(self):
> + self._initLabelAnswers = {}
> +
> + def resetReinitInconsistentLVMQuestion(self):
> + self._inconsistentLVMAnswers = {}
> +
> def shutdown (self):
> pass

ACK.

Incidentally, one day we really need to make a base Interface class that
everything can inherit stuff like this from. Further, I've thought
about adapting cmdline.py:InstallInterface to somehow just halt and
print its error message on method call. I'm tired of bugs like this.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:21 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org