[Maypole] Searching and paged results
Jesse Sheidlower
jester@panix.com
Wed, 5 May 2004 10:13:48 -0400
On Wed, May 05, 2004 at 06:14:22AM +0100, Simon Cozens wrote:
Jesse Sheidlower wrote:
>
> > I guess the solution will involve always appending form params
> > back onto the query?
>
> Yes.
>
> > But will that complicate things if one is
> > expecting form params instead of URL params?
>
> Ow, yes, this is going to get complicated. I'll revamp the search method as
> promised to take more interesting search operators, and will fix this then -
> probably by allowing the search terms to come on the URL or as form
> parameters. The current implementation is little more than a proof of concept.
Thank you.
I'd ask that when you do this, could you write the relevant actions--to
construct the search params and to get them back--as separate methods,
instead of as an integral part of the search?
That way, if one wants to pass search parameters in a different way
(I had in mind sticking them into the same session that's already
holding login info), one can do this by overriding only the relevant
methods, instead of having to override the entire search mechanism
(esp. as this is likely to be growing in complexity).
Jesse Sheidlower