[BlueBream] pagination in bluebream
josh at hipro.co.in
Fri Aug 12 08:38:59 EDT 2011
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?
HiPro IT Solutions Private Limited
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/bluebream/attachments/20110812/56d82714/attachment.bin
More information about the bluebream