Re: [f15-branch] iscsi: disable the 'Login' button with no nodes selected.

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

 



>  data/ui/iscsi-dialogs.glade       |    2 +-
>  pyanaconda/iw/advanced_storage.py |   11 +++++++++--
>  2 files changed, 10 insertions(+), 3 deletions(-)

Looks good to me.

> @@ -245,7 +249,10 @@ class iSCSIGuiWizard(pih.iSCSIWizard):
>              store,
>              model,
>              view)
> -        ds.createSelectionCol()
> +        callback = functools.partial(_login_button_disabler,
> +                                     ds,
> +                                     xml.get_widget("button_login"))
> +        ds.createSelectionCol(toggledCB=callback)
>          ds.addColumn(_("Node Name"), self.NODE_NAME_COL)
>          # attach the treeview to the dialog
>          sw = xml.get_widget("nodes_scrolled_window")

Clever way to work in currying, there.

- 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