Re: [virt-manager] [PATCH 5/9] create: Populate previous bootstrap source URLs

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

 



On 06/22/2017 10:54 AM, Radostin Stoyanov wrote:
> ---
>  virtManager/create.py | 26 ++++++++++++++++++--------
>  1 file changed, 18 insertions(+), 8 deletions(-)
> 
> diff --git a/virtManager/create.py b/virtManager/create.py
> index 4bedcfe..7396aba 100644
> --- a/virtManager/create.py
> +++ b/virtManager/create.py
> @@ -299,17 +299,21 @@ class vmmCreate(vmmGObjectUI):
>          text = uiutil.init_combo_text_column(conn_list, 1)
>          text.set_property("ellipsize", Pango.EllipsizeMode.MIDDLE)
>  
> +        def set_model_list(widget_id):
> +            lst = self.widget(widget_id)
> +            model = Gtk.ListStore(str)
> +            lst.set_model(model)
> +            lst.set_entry_text_column(0)
> +
>          # ISO media list
> -        iso_list = self.widget("install-iso-combo")
> -        iso_model = Gtk.ListStore(str)
> -        iso_list.set_model(iso_model)
> -        iso_list.set_entry_text_column(0)
> +        set_model_list("install-iso-combo")
>  
>          # Lists for the install urls
> -        media_url_list = self.widget("install-url-combo")
> -        media_url_model = Gtk.ListStore(str)
> -        media_url_list.set_model(media_url_model)
> -        media_url_list.set_entry_text_column(0)
> +        set_model_list("install-url-combo")
> +
> +        # Lists for OS container bootstrap
> +        set_model_list("install-oscontainer-source-url-combo")
> +
>

Adds an extra newline here

>          def sep_func(model, it, combo):
>              ignore = combo
> @@ -450,6 +454,9 @@ class vmmCreate(vmmGObjectUI):
>          self.widget("install-oscontainer-source-passwd").set_text("")
>          self.widget("install-oscontainer-bootstrap").set_active(False)
>          self.widget("install-oscontainer-auth-options").set_expanded(False)
> +        src_model = self.widget("install-oscontainer-source-url-combo").get_model()
> +        _populate_media_model(src_model, self.config.get_container_urls())
> +
>  

And here

- Cole

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list



[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux