[PATCH 1/2] Add a mountpoints property.

Vratislav Podzimek vpodzime at redhat.com
Fri Aug 24 08:07:38 UTC 2012


Ack to both.

On Thu, 2012-08-23 at 11:53 -0400, Chris Lumens wrote:
> This returns all the mountpoints for a given page as a list of strings.
> ---
>  pyanaconda/ui/gui/spokes/lib/accordion.py | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py
> index 473ff04..f4d15c8 100644
> --- a/pyanaconda/ui/gui/spokes/lib/accordion.py
> +++ b/pyanaconda/ui/gui/spokes/lib/accordion.py
> @@ -151,6 +151,10 @@ class Page(Gtk.Box):
>  
>          return selector
>  
> +    @property
> +    def mountpoints(self):
> +        return [mem.props.mountpoint for mem in self._members]
> +
>      def _mountpointType(self, mountpoint):
>          if not mountpoint:
>              # This catches things like swap.
> @@ -226,3 +230,7 @@ class CreateNewPage(Page):
>          self._createBox.add(label)
>  
>          self.add(self._createBox)
> +
> +    @property
> +    def mountpoints(self):
> +        return []

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list