Pull requests

#2 Declined
Repository
gcamera
Branch
trunk
Repository
bbangert
Branch
trunk

Can provide a HTML wrapper for links created by Page.pager

Author
  1. Guillaume Camera
Reviewers
Description

It's now allowed to provide a new HTML element to wrap the link created by Page.pager.

Example:

Page.pager() .... <a>2</a><a>3</a>.... Page.pager(link_wrapper='li') .....<li><a>2</a></li><li><a>3</a></li>

  • Learn about pull requests

Comments (2)

  1. Guillaume Camera author

    Sorry the bad English. The correct docstring could be :

    "Allow to add HTML tag over A-HREF for the final render."

    It was late when the commit was done, I was not so concentrated about English :)

    If the idea is accepted, the next commit can allow the pager to provide an other attribut like link_wrapper_attr and apply it on the HTML tag.

    EDIT: I added a new commit to fix the docstring.

  2. Mike Orr

    WebHelpers is no longer accepting feature enhancements. Paginate's author Christoph Haas is maintaining it as a standalone package; you can submit your suggestion there. http://pypi.python.org/pypi/paginate/0.4.0 https://github.com/Signum/paginate Webhelpers is being superceded by WebHelpers2, which does not include Paginate or the other large third-party packages. (Ignore it if it's in the development tree because the distro is in the middle of reorganizing.) https://github.com/mikeorr/WebHelpers2