Zeam.utils.batch

Latest version: v1.1

Safety actively analyzes 613460 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.2

----------------

* ...

1.1

----------------

* Add a new type of batch, AlphabeticalBatch, that like the DateBatch,
and can be used to iterate through a fixed set of items like letters
or digits.

* Fix a bug when the ``start`` value is higher than the number of
element in the batch in the regular batch.

* Add two options ``min`` and ``max`` to the date batch in order to
define possible limits for it.

1.0

----------------

* Add a new batch component, ``DateBatch``, which is able to browser
period of years or months.

* ``batch`` is renamed into ``Batch``. Methods have been renamed to
follow pep8 recommandations (i.e. ``batchLen`` into ``batch_length``).

* Template have been reviewed: values are accessible via the template
variable ``batch`` insted of directly. This fix an issue of
compatiblity with Chameleon, where ``next`` could not be defined
(that's a Python built-in).

0.7

----------------

* Add a __len__ method do a batch object, which returns the number of
objects viewable via this current batch. Like this, it can be used
with tal:condition in templates.

* An option keep_form_data on the view prevent to include posted form
data in generated links (sometime you want them, some other you
don't).

0.6

----------------

* Generated batch links can include other parameters in the link. That
let you batch form results for instance.

0.5

----------------

* Batching views have two new properties: ``first`` and ``last`` which
gives links to the first and last batch.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.