rpms/TurboGears/EL-5 TurboGears-1.0.3.2-paginate.patch, NONE, 1.1 TurboGears.spec, 1.17, 1.18

Luke Macken (lmacken) fedora-extras-commits at redhat.com
Tue Dec 18 15:19:29 UTC 2007


Author: lmacken

Update of /cvs/pkgs/rpms/TurboGears/EL-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv11266

Modified Files:
	TurboGears.spec 
Added Files:
	TurboGears-1.0.3.2-paginate.patch 
Log Message:
Add TurboGears-1.0.3.2-paginate.patch backported from upstream (http://trac.turbogears.org/ticket/1629)

TurboGears-1.0.3.2-paginate.patch:

--- NEW FILE TurboGears-1.0.3.2-paginate.patch ---
--- CHANGELOG.txt.orig	2007-12-15 17:27:10.000000000 -0500
+++ CHANGELOG.txt	2007-12-15 17:26:49.000000000 -0500
@@ -1,6 +1,28 @@
 TurboGears Changelog
 ====================
 
+1.0.4 Backports (December 15, 2007):
+------------------------------------
+
+Changes
+~~~~~~~
+
+* Pagination can be disabled by using ``allow_limit_override`` and.
+  ``tg_paginate_limit=0``, allowing all results been returned on one single.
+  page (#1629).
+
+Fixes
+~~~~~
+
+* Paginate does a better handling of zeroed limit, avoiding ZeroDivisionError
+  exception (#1629).
+
+Contributors
+~~~~~~~~~~~~
+
+Toshio Kuratomi
+
+
 1.0.3.2 (July 20, 2007):
 ------------------------
 *Changes*
--- turbogears/paginate.py.orig	2007-12-15 17:20:54.000000000 -0500
+++ turbogears/paginate.py	2007-12-15 17:24:27.000000000 -0500
@@ -147,6 +147,9 @@
                     'Variable is not a list or SelectResults or Query (%s)' % type(
                             var_data))
 
+            # If limit is zero then return all our rows
+            if not limit_:
+                limit_ = row_count or 1
             offset = (page-1) * limit_
             page_count = int(ceil(float(row_count)/limit_))
 


Index: TurboGears.spec
===================================================================
RCS file: /cvs/pkgs/rpms/TurboGears/EL-5/TurboGears.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- TurboGears.spec	27 Nov 2007 21:19:04 -0000	1.17
+++ TurboGears.spec	18 Dec 2007 15:18:55 -0000	1.18
@@ -3,7 +3,7 @@
 
 Name:           TurboGears
 Version:        1.0.3.2
-Release:        1%{?dist}
+Release:        7%{?dist}
 Summary:        Back-to-front web development in Python
 
 Group:          Development/Languages
@@ -11,6 +11,7 @@
 URL:            http://www.turbogears.org
 Source0:        http://files.turbogears.org/eggs/%{name}-%{version}.tar.gz
 Patch0:         %{name}-%{version}-setuptools.patch
+Patch1:         %{name}-%{version}-paginate.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch:      noarch
 
@@ -65,6 +66,7 @@
 %prep
 %setup -q
 %patch0 -b .setuptools
+%patch1 -b .paginate
 
 
 %build
@@ -86,8 +88,41 @@
 %{python_sitelib}/turbogears/
 
 %changelog
-* Tue Nov 27 2007 Luke Macken <lmacken at redhat.com> 1.0.3.2-1
+* Sat Dec 15 2007 Luke Macken <lmacken at redhat.com> 1.0.3.2-7
+- Add TurboGears-1.0.3.2-paginate.patch backported from upstream
+  http://trac.turbogears.org/ticket/1629
+
+* Sat Oct 27 2007 Luke Macken <lmacken at redhat.com> 1.0.3.2-6
+- Remove python-TestGears requirement, as this functionality
+  has been replaced by nose.
+
+* Mon Oct 8 2007 Toshio Kuratomi <a.badger at gmail.com> 1.0.3.2-5
+- Update patch so that quickstart template pulls in the proper sqlalchemy
+  when tg-admin quickstart -s is run.
+
+* Fri Oct 5 2007 Toshio Kuratomi <a.badger at gmail.com> 1.0.3.2-4
+- Require sqlalchemy 0.3.
+
+* Thu Sep 27 2007 Toshio Kuratomi <a.badger at gmail.com> 1.0.3.2-3
+- Update setuptools patch to modify quickstart template for compat eggs as well.
+
+* Mon Sep 24 2007 Luke Macken <lmacken at redhat.com> 1.0.3.2-2
+- Update setuptools patch to "fix" CherryPy dependency error
+
+* Mon Sep 13 2007 Luke Macken <lmacken at redhat.com> 1.0.3.2-1
 - 1.0.3.2
+- Remove etree patch
+
+* Sun Sep  2 2007 Luke Macken <lmacken at redhat.com> 1.0.2.2-3
+- Update for python-setuptools changes in rawhide
+
+* Thu May 11 2007 Luke Macken <lmacken at redhat.com> 1.0.2.2-2
+- Update etree patch to work with Python2.4
+- Update setuptools patch
+
+* Thu May 3 2007 Luke Macken <lmacken at redhat.com> 1.0.2.2-1
+- 1.0.2.2
+- TurboGears-1.0.2.2-etree.patch to use xml.etree instead of elementtree module
 
 * Fri Jan 26 2007 Toshio Kuratomi <toshio at tiki-lounge.com> 1.0.1-2
 - Don't flub the patch this time.




More information about the fedora-extras-commits mailing list