[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [rhel6-branch] Implement a general version of InstallInterfaceBase.methodstrRepoWindow().
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Subject: Re: [rhel6-branch] Implement a general version of InstallInterfaceBase.methodstrRepoWindow().
- Date: Fri, 18 Mar 2011 10:20:58 -0400
> @@ -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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]