Skip Menu |

This queue is for tickets about the Tk-Wizard CPAN distribution.

Report information
The Basics
Id: 30095
Status: resolved
Priority: 0/
Queue: Tk-Wizard

People
Owner: MTHURN [...] cpan.org
Requestors: MTHURN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.118
Fixed in: (no value)



Subject: new method get_next_page_number
During the event handlers (usually the preNext), the programmer often needs to know what page is coming next, in order to make sure the right thing appears. In the past, it was sufficient to assume that pagePtr+1 was the next page. However, the introduction of the Skip mechanism can break that assumption. I propose a new method get_next_page_number() that takes Skip into account to calculate what the next page will be. (We'll probably create another new method get_back_page_number() at the same time) -- - - Martin 'Kingpin' Thurn
Subject: Re: [rt.cpan.org #30095] new method get_next_page_number
Date: Thu, 18 Oct 2007 20:43:17 +0100
To: bug-Tk-Wizard [...] rt.cpan.org
From: Lee Goddard <London [...] LeeGoddard.net>
Martin Thurn via RT wrote: Show quoted text
> Thu Oct 18 11:59:02 2007: Request 30095 was acted upon. > Transaction: Ticket created by MTHURN > Queue: Tk-Wizard > Subject: new method get_next_page_number > Broken in: 2.118 > Severity: Normal > Owner: Nobody > Requestors: MTHURN@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=30095 > > > > During the event handlers (usually the preNext), the programmer often > needs to know what page is coming next, in order to make sure the right > thing appears. In the past, it was sufficient to assume that pagePtr+1 > was the next page. However, the introduction of the Skip mechanism can > break that assumption. > I propose a new method get_next_page_number() that takes Skip into > account to calculate what the next page will be. > (We'll probably create another new method get_back_page_number() at > the same time) > >
As with all of your suggestions, it seems sensible to me. Just one thing: is Skip not an old method? I thought ... but maybe it was never released. I also thought the page number was already made public, but it's been a while (sorry). Lee
done, next_page_number and back_page_number will appear in 2.119