[Product-Developers] Configurable Batch Size for Ploneboard while viewing conversations

simahawk simahawk at gmail.com
Wed Sep 16 16:00:47 UTC 2009


Hi,

On Sat, 2009-09-05 at 14:07 +0530, Suresh V. wrote:
> Has anyone implemented this?

you can override the class of ConversationView.

See Product.Ploneboard.browser.comment.py:

class ConversationView(CommentView):
    """A view component for querying conversations.
    """

[...]
    def comments(self):
        batchSize = 30
        batchStart = int(self.request.get('b_start', 0))
        numComments = self.context.getNumberOfComments()
        return Batch(self._getComments, numComments, batchSize,
batchStart, orphan=1)
[...]

Hope this helps.





More information about the Product-Developers mailing list