Metadata-Version: 1.1 Name: plone.batching Version: 1.0.8 Summary: Batching facilities used in Plone. Home-page: http://pypi.python.org/pypi/plone.batching Author: Plone Foundation Author-email: plone-developers@lists.sourceforge.net License: GPL Description: Welcome to Plone batching's documentation! ========================================== This package includes facilities for creating a batched sequence. It originated from the the PloneBatch module written for Plone which in itself has been based on Zope2's ZTUtils.Batch. Changelog ========= 1.0.8 (2016-02-15) ------------------ New: - Make ellipses stylable and provide more CSS hooks to pagination markup. This also deprecates the CSS class ``listingBar`` in favor of more commonly used ``pagination``, which will be the canonical one in Plone 5.0.2 and up. [davilima6] 1.0.7 (2016-01-08) ------------------ Fixes: - Fixed missing test in released package. [thet] 1.0.6 (2016-01-08) ------------------ New: - Introduce a "omit_params" option for the ``make_link`` method and filter out ``ajax_load`` by default. When loading the contents with batchnavigation via ajax, it doesn't render the links with ajax_load enabled, which would probably lead to usability troubles. [thet] Fixes: - PEP 8, UTF 8 headers, docs cleanup. [thet] 1.0.5 (2015-07-18) ------------------ - Make sure pagenumber value is not bigger that numpages or it fails in previous_pages when using orphan [gbastien] - Allow orphan size to be equal to batch size. This allows the edge case of batch size 0 with default orphan size 0. [do3cc] 1.0.4 (2015-04-28) ------------------ - Fix lastpage computation with orphaning [gbastien] 1.0.3 (2015-02-20) ------------------ - Fix issue with orphaning [do3cc] 1.0.2 (2014-04-13) ------------------ - Fix issue where a start >= end will always return last item. https://dev.plone.org/ticket/13880\ [thepjot] - Fix multiple_pages if the length of the sequence is exactly the page length. [gaudenz] 1.0.1 (2014-01-27) ------------------ - Fix issue with sequences when the reported length was different than len() iteration would return the full unbatched sequence. [alecm] 1.0 (2013-05-23) ---------------- - Use index instead of template attribute in BatchView to be able to customize only the template. [vincentfretin, thomasdesvenain] - Fixed wrong msgid for 'First item'. [vincentfretin] 1.0b1 (2013-01-17) ------------------ - Nothing changed yet. 1.0a1 (2012-04-25) ------------------ - Factored out Plone batching implementation to seperate egg (PLIP #12235) [tom_gross] Usage ===== A batch defined in plone.batching usually consists of two things: 1. A batch object. This is usually a wrapper for a sequence, which provides slices of information. #. A batch view. This is needed for display. It contains links to navigate to the slices defined in 1. Both elements can be defined and accessed in Python code AND pagetemplates. Batch navigation in templates ----------------------------- For the use of batching features in Page Templates *plone.batching* the first thing you have to do is to create a sequence batch and put it in a template variable named *batch*. You should do this in a view class if possible::