On 19 avr, 18:47, KLEIN Stéphane <klein.steph...@gmail.com> wrote: > Hi, > > This is a webhelpers.paginate patch :http://paste.pocoo.org/show/113226/ > > I've create one ticket here :http://pylonshq.com/project/pylonshq/ticket/605 > > This is change log : > > * paginate : convert "_range" and "_pagelink" function to Page class > method > in order to enable to override it. This is > abouthttp://groups.google.com/group/pylons-devel/browse_thread/thread/8bbd... > * paginate : pager "onclick" argument use template string value. So, > javascript code > can use "partial_url" or "page_param" value or any. Backward > compatibility > is considered. > > This is three new tests to understand the patch : > > assert page.pager(onclick="empty") == '<span > class="pager_curpage">1</span> <a class="pager_link" href="/content? > page=2" onclick="empty">2</a> <a class="pager_link" href="/content? > page=3" onclick="empty">3</a> <span class="pager_dotdot">..</span> <a > class="pager_link" href="/content?page=7" onclick="empty">7</a>' > > assert page.pager(onclick="load('$page_param')") == '<span > class="pager_curpage">1</span> <a class="pager_link" href="/content? > page=2" onclick="load(\'2\')">2</a> <a class="pager_link" href="/ > content?page=3" onclick="load(\'3\')">3</a> <span > class="pager_dotdot">..</span> <a class="pager_link" href="/content? > page=7" onclick="load(\'7\')">7</a>' > > assert page.pager(onclick="load('$partial_url')") == '<span > class="pager_curpage">1</span> <a class="pager_link" href="/content? > page=2" onclick="load(\'/content?partial=1&page=2\')">2</a> <a > class="pager_link" href="/content?page=3" onclick="load(\'/content? > partial=1&page=3\')">3</a> <span class="pager_dotdot">..</span> <a > class="pager_link" href="/content?page=7" onclick="load(\'/content? > partial=1&page=7\')">7</a>'
I heard webhelper 1.0beta is planned. I would like to know what is the status of this patch ? Other question, what is official webhelper repository ? It's that http://bitbucket.org/bbangert/webhelpers/overview/ ? Thanks for your answers, Stephane --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com To unsubscribe from this group, send email to pylons-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en -~----------~----~----~----~------~----~------~--~---