Re: [rhel6-branch] Implement a general version of InstallInterfaceBase.methodstrRepoWindow().

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -1132,8 +1132,16 @@ class InstallInterface(InstallInterfaceBase):
>          dialog.createDialog()
>          dialog.run()
>  
> -    def methodstrRepoWindow(self, methodstr):
> +    def methodstrRepoWindow(self, methodstr, exception):
>          from task_gui import RepoMethodstrEditor
> +
> +        self.anaconda.intf.messageWindow(

You're already in intf here, so this can just be self.messageWindow.

> @@ -35,6 +37,24 @@ class InstallInterfaceBase(object):
>                                custom_buttons=[]):
>          raise NotImplementedError
>  
> +    def methodstrRepoWindow(self, methodstr, exception):
> +        """ Called when the repo specified by methodstr could not be found.
> +
> +            Depending on the interface implementation terminates the program or
> +            gives user a chance to specify a new repo path it then returns. The
> +            default implementation is to terminate.
> +        """
> +        self.messageWindow(
> +            _("Error Setting Up Repository"),
> +            _("The following error occurred while setting up the "
> +              "installation repository:\n\n%(e)s\n\n"
> +              "Installation can not continue.")

Is this a new string?  If so, we're going to need to alert translators.

- Chris

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux