[python-tw2-forms: 5/5] Patch to fix buttons.

Ralph Bean ralph at fedoraproject.org
Mon Apr 28 15:30:44 UTC 2014


commit 9a9f61f429bf8ad3d1859606d5390be0b9ec7d87
Author: Ralph Bean <rbean at redhat.com>
Date:   Mon Apr 28 11:30:27 2014 -0400

    Patch to fix buttons.

 python-tw2-forms-fix-buttons.patch |   24 ++++++++++++++++++++++++
 python-tw2-forms.spec              |    8 +++++++-
 2 files changed, 31 insertions(+), 1 deletions(-)
---
diff --git a/python-tw2-forms-fix-buttons.patch b/python-tw2-forms-fix-buttons.patch
new file mode 100644
index 0000000..24518b8
--- /dev/null
+++ b/python-tw2-forms-fix-buttons.patch
@@ -0,0 +1,24 @@
+From 6e252f9ec89aff74251c633ee4db58b432ffe078 Mon Sep 17 00:00:00 2001
+From: Ralph Bean <rbean at redhat.com>
+Date: Mon, 28 Apr 2014 11:12:29 -0400
+Subject: [PATCH] Fix buttons
+
+---
+ tw2/forms/widgets.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/tw2/forms/widgets.py b/tw2/forms/widgets.py
+index 256e750..d2fd160 100755
+--- a/tw2/forms/widgets.py
++++ b/tw2/forms/widgets.py
+@@ -687,6 +687,7 @@ class Form(twc.DisplayOnlyWidget):
+ 
+     def __init__(self, **kw):
+         super(Form, self).__init__(**kw)
++        self.safe_modify('buttons')
+         if self.buttons:
+             for b in range(0, len(self.buttons)):
+                 self.buttons[b] = self.buttons[b].req()
+-- 
+1.9.0
+
diff --git a/python-tw2-forms.spec b/python-tw2-forms.spec
index 5366dee..44f9e79 100644
--- a/python-tw2-forms.spec
+++ b/python-tw2-forms.spec
@@ -4,13 +4,15 @@
 
 Name:           python-tw2-forms
 Version:        2.1.4.1
-Release:        5%{?dist}
+Release:        6%{?dist}
 Summary:        Forms for ToscaWidgets2
 
 Group:          Development/Languages
 License:        MIT
 URL:            http://toscawidgets.org
 Source0:        http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
+# https://bugzilla.redhat.com/show_bug.cgi?id=1091632
+Patch0:         python-tw2-forms-fix-buttons.patch
 BuildArch:      noarch
 
 # For building, generally
@@ -47,6 +49,7 @@ tw2.forms contains the basic form widgets.
 
 %prep
 %setup -q -n %{modname}-%{version}
+%patch0 -p1
 
 %build
 %{__python} setup.py build
@@ -66,6 +69,9 @@ tw2.forms contains the basic form widgets.
 
 
 %changelog
+* Mon Apr 28 2014 Ralph Bean <rbean at redhat.com> - 2.1.4.1-6
+- Backported patch to fix buttons.
+
 * Tue Aug 06 2013 Ralph Bean <rbean at redhat.com> - 2.1.4.1-5
 - Temporarily disable test suite until the 2.2 release.
 


More information about the scm-commits mailing list