Hey Thadeus! where would you like me to submit it? I can upload it here to this news group. The only thing I changed was what you suggested ;) adding self.r.args to the generate links function ;)
def generate_links(self): self.backward = A('<< previous()', _href=URL(r=self.r, args=self.r.args, vars={'p': self.current - self.display_count})) if self.current else '<< previous(False)' self.forward = A('next() >>', _href=URL(r=self.r, args=self.r.args, vars={'p': self.current + self.display_count})) if self.total_results > self.current + self.display_count else 'next(False) >>' self.location = 'Showing %d to %d out of %d records' % (self.current + 1, self.current + self.num_results, self.total_results) return (self.backward, self.forward, self.location) Anyway I attached the paginate.py *cheers On Thu, Nov 11, 2010 at 9:45 PM, Thadeus Burgess <thade...@thadeusb.com>wrote: > Mind sending me a patch? > > -- > Thadeus > > > > > > On Thu, Nov 11, 2010 at 6:02 PM, Andrew Evans <randra...@gmail.com> wrote: > >> hey thanks for the tips >> >> I have it working now >> >> *cheers >> >> Andrew >> > >
paginate.py
Description: Binary data