Metadata-Version: 1.0
Name: zeam.utils.batch
Version: 0.2
Summary: Generic Batch support for Zope
Home-page: UNKNOWN
Author: Sylvain Viollon
Author-email: thefunny@gmail.com
License: BSD
Description: zeam.utils.batch
        ================
        
        This package provides a batch functionality for Zope 2 and Zope 3.
        
        You can use it like that:
        
        1. Your container which is going to handle the batch must implements
        the marker interface ``zeam.utils.batch.interfaces.IBatchedContent``.
        
        2. You create your batch object on your view code::
        
        from zope.component import queryMultiAdapter
        from zeam.utils.batch import batch
        from zeam.utils.batch.interfaces import IBatchView
        
        
        class MyViewClass(...):
        
        def update(self):
        fulllist = ...
        self.myitems = batch(fulllist, count=10, name='myitems', request=self.request)
        self.batch = queryMultiAdapter((self.context, self.myitems, self.request),
        IBatchView)()
        
        
        3. You use it in your template::
        
        <tal:navigation tal:replace="structure view/batch" />
        
        <tal:items tal:repeat="item view/myitems">
        ...
        </tal:items>
        
        <tal:navigation tal:replace="structure view/batch" />
        
        That's it.
        
        
        Changelog
        =========
        
        0.2
        ---
        
        * Initial release
        
        
Keywords: batch zope
Platform: UNKNOWN
Classifier: Framework :: Zope2
Classifier: Framework :: Zope3
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: BSD License
