al-for paging patch

"Michael C. Neel" <[email protected]> Wed, 10 Mar 2004 19:32:31 -0500
Newsgroups gmane.comp.web.albatross.general
Message-ID <[email protected]>
Well it looks like some of the refactoring done to albatross has made
adding in the paging additions pretty easy.  For the impatient, links
are:

	http://albatross.pseudocode.net/ for a demo
	http://albatross.pseudocode.net/paging_patch.diff.gz for the
patch
	The changes are against the latest (Feb 4th) dev ball.

What I've done: added support for firstpage, lastpage and setpage to
al-input and al-a.  I haven't tested al-a changes beyond the links being
built correctly - need to setup a server based session store to check
them so they don't work on the demo site.

I also added pagemenu to select, which lets a select box xset the page
to jump to as well.  I used pagemenu over setpage because having a
setpage button with a setpage argument caused namespace issues.

Last, I put in two ListIterator method, page() and pagecount(), which
return the page and number of pages.  All page related methods (page(),
pagecount(), and setpage) are 1 based and *not* zero indexed.  The
reason behind this is the value of the input on a sumbit button for
setpage is the value used to switch pages.  If it were zero based, your
button labels would be as well.

I look forward to comments and I'm ready to tweak away to address any
issues.

Mike