pagination in bluebream

Joshua Immanuel <[email protected]>
Newsgroups gmane.comp.web.zope.bluebream,gmane.comp.web.zope.devel
Organization HiPro IT Solutions Private Limited
Message-ID <1313152739.2440.53.camel@jimman>
Hello all,

I am trying to list out items in a container, as the number of objects
in the container may be large I am trying to paginate them. Basically I
am trying to implement something like 'LIMIT' and 'OFFSET' option
available in SQL.

I found z3c.batching package that does this. For this to work it needs
the full list. IMHO, loading the entire list of objects on to the memory
doesn't seem to be a good choice.

I tried to use zope.catalog to get the object list. But, it has just the
_limit option to control the output size. And again manipulating the
_limit value to [offset + limit] and then trimming the results doesn't
seem to be a clean approach.

Is there any other better way of doing this?

-- 
Joshua Immanuel
HiPro IT Solutions Private Limited
http://hipro.co.in
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEABECAAYFAk5FHtwACgkQWw85XwuSFMKy1QCgqSvMtayTjO844Cs1vfL3sSIZ
Bf4AoML4HRxvykNyAoCJe3K7NZ0JZ8+m
=kJqT
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.