[Zope] result pages question
Ed Colmar
ed@greengraphics.net
Wed, 13 Mar 2002 12:44:18 -0800
This is a multi-part message in MIME format.
------=_NextPart_000_0218_01C1CA8C.CA73BF60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey...
The easiest way to do it, is to add a "search method" form the zope mgt =
interface. It will create a pair of DTMl methods that have the batching =
code in place. you can then pull it out to do whatever you need.
-ed-
----- Original Message -----=20
From: Alexander Batzios=20
To: zope@zope.org=20
Sent: Tuesday, March 12, 2002 10:53 PM
Subject: [Zope] result pages question
Hello.
I'm developing a search engine with Zope. It queries a database based =
on a search form and displays the results (records). I have it working =
and all but I would like to split the results into pages of say 10 =
results per page. Is this possible through Zope? I haven't found =
anything in the docs. But then again, I am new to Zope so maybe I didn't =
look in the right place. So that's my question basically. If such a =
thing is possible with Zope and if yes, how.=20
Thank you,
Alex
------=_NextPart_000_0218_01C1CA8C.CA73BF60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2713.1100" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hey...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>The easiest way to do it, is to add a =
"search=20
method" form the zope mgt interface. It will create a pair of DTMl =
methods=20
that have the batching code in place. you can then pull it out to =
do=20
whatever you need.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>-ed-</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dalexb@runbox.com href=3D"mailto:alexb@runbox.com">Alexander =
Batzios</A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A title=3Dzope@zope.org=20
href=3D"mailto:zope@zope.org">zope@zope.org</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Tuesday, March 12, 2002 =
10:53=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [Zope] result pages=20
question</DIV>
<DIV><BR></DIV>
<DIV><FONT face=3DArial size=3D2>Hello.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm developing a search engine with =
Zope. It=20
queries a database based on a search form and displays the results =
(records).=20
I have it working and all but I would like to split the results into =
pages of=20
say 10 results per page. Is this possible through Zope? I haven't =
found=20
anything in the docs. But then again, I am new to Zope so maybe I =
didn't look=20
in the right place. So that's my question basically. If such a thing =
is=20
possible with Zope and if yes, how. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Alex</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_0218_01C1CA8C.CA73BF60--