Re: [RFC] Alternative paginator

2007-06-15 Thread Mike Orr
There's a bug in Christoph Haas's alternative paginator (http://workaround.org/pylons/paginator/) if the result set contains zero records and 'show_if_single_page' is true. Module inews.lib.paginator:245 in navigator text = '%s' % (self.first_page+(start_with_one and 1)) TypeError: unsupported

Re: [RFC] Alternative paginator

2007-06-15 Thread Mike Orr
Sheesh, forgot the conditional. paginator.py line 237: # If zero result records, return a fake navigator if self.item_count == 0: return 'strong[1]/strong' -- Mike Orr [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this

Re: [RFC] Alternative paginator

2007-06-15 Thread Christoph Haas
On Fri, Jun 15, 2007 at 12:08:31PM -0700, Mike Orr wrote: There's a bug in Christoph Haas's alternative paginator (http://workaround.org/pylons/paginator/) if the result set contains zero records and 'show_if_single_page' is true. Module inews.lib.paginator:245 in navigator text = '%s

Re: [RFC] Alternative paginator

2007-06-15 Thread Mike Orr
On 6/15/07, Christoph Haas [EMAIL PROTECTED] wrote: On Fri, Jun 15, 2007 at 12:08:31PM -0700, Mike Orr wrote: There's a bug in Christoph Haas's alternative paginator (http://workaround.org/pylons/paginator/) if the result set contains zero records and 'show_if_single_page' is true

Re: [RFC] Alternative paginator

2007-06-15 Thread Christoph Haas
On Fri, Jun 15, 2007 at 09:26:00PM +0200, Christoph Haas wrote: I have added support for jQuery, too. UPDATE: the jQuery enabled version is already online at http://workaround.org/pylons/paginate I have also moved some logic around so it might well be the reported bug is gone. I'll check

Re: [RFC] Alternative paginator

2007-05-15 Thread Christoph Haas
On Tue, May 15, 2007 at 03:27:39PM -0700, Mike Orr wrote: On 5/5/07, Christoph Haas [EMAIL PROTECTED] wrote: as some of you already know I have never been very happy with Webhelpers' built-in pagination module. So I wrote my own (that is NOT compatible with the existing one) and I love

Re: [RFC] Alternative paginator

2007-05-11 Thread Christoph Haas
On Thu, May 10, 2007 at 04:27:19PM -0700, Ben Bangert wrote: Christoph Haas wrote: I'd personally accept that the API changes as long as the module is called something else. The Python standard library has a lot of examples where old modules became deprecated with the time and modules with

Re: Alternative paginator

2007-05-11 Thread Michael G. Noll
On May 11, 11:04 am, Christoph Haas [EMAIL PROTECTED] wrote: If others are happy with the API as it is I'd be happy to see it included as an alternative module in the webhelpers. I'm happy with it so far. ;-) Though I have not tested it yet with regard to scalability in practice, a big

Re: Alternative paginator

2007-05-10 Thread Michael G. Noll
Hi Christoph, first of all, thanks for your work on an alternative paginator. I'm currently testing it, and I am pleased so far :-) However, I found one bug and a minor documentation error for the module available at http://workaround.org/pylons/paginator/paginate.py. Bug === The relevant

Re: [RFC] Alternative paginator

2007-05-10 Thread Christoph Haas
On Wed, May 09, 2007 at 05:08:01PM -0700, Philip Jenvey wrote: On May 8, 2007, at 12:14 AM, Christoph Haas wrote: On Mon, May 07, 2007 at 02:49:24PM -0700, Philip Jenvey wrote: On May 5, 2007, at 1:07 PM, Christoph Haas wrote: as some of you already know I have never been very happy

Re: Alternative paginator

2007-05-10 Thread Christoph Haas
Michael... On Thu, May 10, 2007 at 09:59:09AM -, Michael G. Noll wrote: first of all, thanks for your work on an alternative paginator. I'm currently testing it, and I am pleased so far :-) Thank you for the feedback. I already thought I'm the only who uses that module. :) Bug

Re: [RFC] Alternative paginator

2007-05-09 Thread Philip Jenvey
On May 8, 2007, at 12:14 AM, Christoph Haas wrote: On Mon, May 07, 2007 at 02:49:24PM -0700, Philip Jenvey wrote: On May 5, 2007, at 1:07 PM, Christoph Haas wrote: as some of you already know I have never been very happy with Webhelpers' built-in pagination module. So I wrote my own (that

Re: [RFC] Alternative paginator

2007-05-08 Thread Christoph Haas
On Mon, May 07, 2007 at 02:49:24PM -0700, Philip Jenvey wrote: On May 5, 2007, at 1:07 PM, Christoph Haas wrote: as some of you already know I have never been very happy with Webhelpers' built-in pagination module. So I wrote my own (that is NOT compatible with the existing one) and I love

Re: [RFC] Alternative paginator

2007-05-07 Thread Philip Jenvey
On May 5, 2007, at 1:07 PM, Christoph Haas wrote: Dear list... as some of you already know I have never been very happy with Webhelpers' built-in pagination module. So I wrote my own (that is NOT compatible with the existing one) and I love it so far. Interested? Get it from

Re: Alternative paginator

2007-05-06 Thread Christoph Haas
On Sat, May 05, 2007 at 11:49:37PM -0700, voltron wrote: Do you have examples of its use? Thanks. I apologize for my newbiness, new to Pylons and all Yes. I took some hours to write the documentation. It's currently in the paginator.rest file as well as in the source itself. You can read it as

[RFC] Alternative paginator

2007-05-05 Thread Christoph Haas
Dear list... as some of you already know I have never been very happy with Webhelpers' built-in pagination module. So I wrote my own (that is NOT compatible with the existing one) and I love it so far. Interested? Get it from http://workaround.org/pylons/paginator/ and let me know what you