I am trying to understand the best way to show a paginated view of a
repoze Folder.

Currently I am using an "offset & length" style approach. Given a
page_size, I compute the number of pages. But to access a particular
page, I am slicing through the keys(), and using the sliced keys to
access the data. From a high-level look of the implementation, looks
like the entire "keys()" will have to be loaded in order for it to
slice.

I am uncomfortable with the "entire keys() loading" part. Is there a
better way?

-- 
Joe Steeve
HiPro IT Solutions Private Limited
http://hipro.co.in/

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to