semvec/pypi-packages huggingface dataset:
django-intellipages 0.1
This app provides one tiny but useful template filter for page navigation
License: BSD

===================
django-intellipages
===================

This app provides only one tiny template filter for now. It allows you to
output page navigation like this::

    1 ... 6 7 _8_ 9 10 ... 32

(where ``8`` is the current page number).

Usage
=====

Add ``intellipages`` to ``INSTALLED_APPS``. In your templates do::

    {% load intellipages %}
    
    {% for p in page|intellipages %}
        {% if p %}
            {% ifequal p page.number %}
                {{ p }}
            {% else %}
                <a href="?page={{ p }}">{{ p }}</a>
            {% endifequal %}
        {% else %}
            ...
        {% endif %}
    {% endfor %}

(where ``page`` is a ``django.core.paginator.Page`` instance).

Or::

    {% load intellipages %}
    
    {% for p in paginator|intellipages:number %}
        {% if p %}
            {% ifequal p number %}
                {{ p }}
            {% else %}
                <a href="?page={{ p }}">{{ p }}</a>
            {% endifequal %}
        {% else %}
            ...
        {% endif %}
    {% endfor %}

(where ``page`` is a ``django.core.paginator.Paginator`` instance, and
``number`` is a variable of type ``int``).
bp.preferences 0.1
Preference system for applications
License: BSD

bp.preferences is based on the Preference package available on PyPI (http://pypi.python.org/pypi/Preferences).

It overwrites the ``load_files`` method to change the behaviour of loading preferences from different files. On initialization preferences are always loaded in this order:

-   package_location/file_name.cfg  (contains default preferences)
-   /etc/file_name
-   ~/.file_name
-   current_working_direcory/file_name

Additionaly some methods are added to make conversion of preference values to Python types easier:

def _toString(self, value):
    Converts a string enclosed with single or double quotes to a Python string without quotes. This is needed e.g. to support preference values with leading/trailing whitespace characters.



CHANGELOG
=========

0.1
---

-   Initial release