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 +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 - 2.1.4.1-6 +- Backported patch to fix buttons. + * Tue Aug 06 2013 Ralph Bean - 2.1.4.1-5 - Temporarily disable test suite until the 2.2 release.