Django

Code

Ticket #6860 (new)

Opened 9 months ago

Last modified 1 month ago

Improvements for the new paginator

Reported by: Alberto García Hierro <fiam@rm-fr.net> Assigned to: nobody
Milestone: Component: Core framework
Version: SVN Keywords: paginator
Cc: Triage Stage: Design decision needed
Has patch: 1 Needs documentation: 1
Needs tests: 0 Patch needs improvement: 0

Description

This patch adds methods for storing the base_url and retrieving it, displaying the page list as ul or div (taking the current page into account) as well as for obtaining the links for the previous and next pages. I've not included any documentation, because I want to get some feedback about the code itself before writing any doc.

Attachments

0005-Improve-the-new-paginator.diff (6.1 kB) - added by Alberto García Hierro <fiam@rm-fr.net> on 03/22/08 23:22:27.
0005-Improve-the-new-paginator.2.diff (5.9 kB) - added by Alberto García Hierro <fiam@rm-fr.net> on 03/23/08 22:57:39.
Improved version of the patch

Change History

03/22/08 23:22:27 changed by Alberto García Hierro <fiam@rm-fr.net>

  • attachment 0005-Improve-the-new-paginator.diff added.

03/23/08 22:57:39 changed by Alberto García Hierro <fiam@rm-fr.net>

  • attachment 0005-Improve-the-new-paginator.2.diff added.

Improved version of the patch

06/10/08 20:58:26 changed by programmerq

  • needs_better_patch changed.
  • stage changed from Unreviewed to Design decision needed.
  • needs_tests changed.
  • needs_docs set to 1.

This looks useful, and would probably clean up views that use the paginator. The patch applies beautifully to current trunk.

10/24/08 13:56:58 changed by anonymous


Add/Change #6860 (Improvements for the new paginator)




Change Properties
Action