[master][PATCH] MountpointSelector is a widget, set its property properly (#1013612)

Brian C. Lane bcl at redhat.com
Fri Oct 11 00:39:42 UTC 2013


On Thu, Oct 10, 2013 at 04:37:20PM +0200, Vratislav Podzimek wrote:
> Setting 'size' attribute of our Python wrapping code is not the same as settings
> widget's property.
> 
> Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
> ---
>  widgets/python/AnacondaWidgets.py | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/widgets/python/AnacondaWidgets.py b/widgets/python/AnacondaWidgets.py
> index 3046f37..107a45e 100644
> --- a/widgets/python/AnacondaWidgets.py
> +++ b/widgets/python/AnacondaWidgets.py
> @@ -43,6 +43,14 @@ class MountpointSelector(Anaconda.MountpointSelector):
>          if mountpoint:
>              self.set_property("mountpoint", mountpoint)
>  
> +    @property
> +    def size(self):
> +        return self.get_property("size")
> +
> +    @size.setter
> +    def size(self, size):
> +        self.set_property("size", size)
> +
>  MountpointSelector = override(MountpointSelector)
>  __all__.append('MountpointSelector')
>  
> -- 
> 1.7.11.7

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20131010/8edf900e/attachment.sig>


More information about the anaconda-patches mailing list