From 93b0509ca44dbb1903d3cd9be62c330ec20eeb53 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki Date: Mon, 13 Jun 2011 13:29:09 +0200 Subject: [PATCH] Rename to linaro-django-pagination. The import package changed from 'pagination' to 'linaro_django_pagination'. The project name changed to 'linaro-django-pagination' --- docs/index.txt | 2 +- docs/install.txt | 12 +++--- docs/usage.txt | 8 ++-- .../__init__.py | 0 .../locale/de/LC_MESSAGES/django.po | 0 .../locale/fr/LC_MESSAGES/django.po | 4 +- .../locale/pl/LC_MESSAGES/django.po | 6 +-- .../locale/pt/LC_MESSAGES/django.po | 2 +- .../middleware.py | 0 .../models.py | 0 .../paginator.py | 0 .../templates/pagination/pagination.html | 0 .../templatetags/__init__.py | 0 .../templatetags/pagination_tags.py | 0 .../tests.py | 8 ++-- setup.py | 39 ++++++++++++------- tests/runtests.py | 2 +- tests/settings.py | 2 +- 18 files changed, 48 insertions(+), 37 deletions(-) rename {pagination => linaro_django_pagination}/__init__.py (100%) rename {pagination => linaro_django_pagination}/locale/de/LC_MESSAGES/django.po (100%) rename {pagination => linaro_django_pagination}/locale/fr/LC_MESSAGES/django.po (83%) rename {pagination => linaro_django_pagination}/locale/pl/LC_MESSAGES/django.po (77%) rename {pagination => linaro_django_pagination}/locale/pt/LC_MESSAGES/django.po (93%) rename {pagination => linaro_django_pagination}/middleware.py (100%) rename {pagination => linaro_django_pagination}/models.py (100%) rename {pagination => linaro_django_pagination}/paginator.py (100%) rename {pagination => linaro_django_pagination}/templates/pagination/pagination.html (100%) rename {pagination => linaro_django_pagination}/templatetags/__init__.py (100%) rename {pagination => linaro_django_pagination}/templatetags/pagination_tags.py (100%) rename {pagination => linaro_django_pagination}/tests.py (93%) mode change 100644 => 100755 setup.py diff --git a/docs/index.txt b/docs/index.txt index e40b22d..b9dbafe 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -1,5 +1,5 @@ ################# -django-pagination +linaro-django-pagination ################# Django-pagination is a set of utilities for creating robust pagination tools diff --git a/docs/install.txt b/docs/install.txt index d178755..f70d4d3 100644 --- a/docs/install.txt +++ b/docs/install.txt @@ -1,10 +1,10 @@ -Installing the latest development version of django-pagination +Installing the latest development version of linaro-linaro-django-pagination --------------------------------------------------------------- To install, first check out the latest version of the application from subversion: - svn co http://django-pagination.googlecode.com/svn/trunk django-pagination + svn co http://linaro-django-pagination.googlecode.com/svn/trunk linaro-django-pagination Now, link the inner ``pagination`` project to your Python path: @@ -27,14 +27,14 @@ following command: sudo python setup.py install -Once that's done, you should be able to begin using django-pagination at will. +Once that's done, you should be able to begin using linaro-django-pagination at will. Installing via setuptools ------------------------- If you have setuptools_ installed, you can simply run the following command -to install django-pagination: +to install linaro-django-pagination: - sudo easy_install django-pagination + sudo easy_install linaro-django-pagination -.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools \ No newline at end of file +.. _setuptools: http://peak.telecommunity.com/DevCenter/setuptools diff --git a/docs/usage.txt b/docs/usage.txt index b520169..bb819b5 100644 --- a/docs/usage.txt +++ b/docs/usage.txt @@ -1,7 +1,7 @@ -How to use django-pagination +How to use linaro-django-pagination ---------------------------- -``django-pagination`` allows for easy Digg-style pagination without modifying +``linaro-django-pagination`` allows for easy Digg-style pagination without modifying your views. There are really 5 steps to setting it up with your projects (not including @@ -73,7 +73,7 @@ a way to navigate between the different pages--all without touching your views. A Note About Uploads -------------------- -It is important, when using django-pagination in conjunction with file uploads, +It is important, when using linaro-django-pagination in conjunction with file uploads, to be aware of when ``request.page`` is accessed. As soon as ``request.page`` is accessed, ``request.upload_handlers`` is frozen and cannot be altered in any way. It's a good idea to access the ``page`` attribute on the request object @@ -83,7 +83,7 @@ as late as possible in your views. Optional Settings ------------------ -In django-pagination, there are no required settings. There are, however, a +In linaro-django-pagination, there are no required settings. There are, however, a small set of optional settings useful for changing the default behavior of the pagination tags. Here's an overview: diff --git a/pagination/__init__.py b/linaro_django_pagination/__init__.py similarity index 100% rename from pagination/__init__.py rename to linaro_django_pagination/__init__.py diff --git a/pagination/locale/de/LC_MESSAGES/django.po b/linaro_django_pagination/locale/de/LC_MESSAGES/django.po similarity index 100% rename from pagination/locale/de/LC_MESSAGES/django.po rename to linaro_django_pagination/locale/de/LC_MESSAGES/django.po diff --git a/pagination/locale/fr/LC_MESSAGES/django.po b/linaro_django_pagination/locale/fr/LC_MESSAGES/django.po similarity index 83% rename from pagination/locale/fr/LC_MESSAGES/django.po rename to linaro_django_pagination/locale/fr/LC_MESSAGES/django.po index 85086d2..2ec8e65 100644 --- a/pagination/locale/fr/LC_MESSAGES/django.po +++ b/linaro_django_pagination/locale/fr/LC_MESSAGES/django.po @@ -1,6 +1,6 @@ -# django-pagination French translation. +# linaro-django-pagination French translation. # Copyright (C) 2008, Julien Demoor -# This file is distributed under the same license as the django-pagination package. +# This file is distributed under the same license as the linaro-django-pagination package. # Julien Demoor , 2008 # msgid "" diff --git a/pagination/locale/pl/LC_MESSAGES/django.po b/linaro_django_pagination/locale/pl/LC_MESSAGES/django.po similarity index 77% rename from pagination/locale/pl/LC_MESSAGES/django.po rename to linaro_django_pagination/locale/pl/LC_MESSAGES/django.po index 84b41e3..f6db3a8 100644 --- a/pagination/locale/pl/LC_MESSAGES/django.po +++ b/linaro_django_pagination/locale/pl/LC_MESSAGES/django.po @@ -1,6 +1,6 @@ -# Polish translation of django-pagination. -# Copyright (C) 2008, django-pagination team -# This file is distributed under the same license as the django-pagination package. +# Polish translation of linaro-django-pagination. +# Copyright (C) 2008, linaro-django-pagination team +# This file is distributed under the same license as the linaro-django-pagination package. # Jarek Zgoda , 2008. # #, fuzzy diff --git a/pagination/locale/pt/LC_MESSAGES/django.po b/linaro_django_pagination/locale/pt/LC_MESSAGES/django.po similarity index 93% rename from pagination/locale/pt/LC_MESSAGES/django.po rename to linaro_django_pagination/locale/pt/LC_MESSAGES/django.po index 9289f88..6b8e37b 100644 --- a/pagination/locale/pt/LC_MESSAGES/django.po +++ b/linaro_django_pagination/locale/pt/LC_MESSAGES/django.po @@ -1,4 +1,4 @@ -# django-pagination Portuguese translation. +# linaro-django-pagination Portuguese translation. # Copyright (C) 2008, Alcides Fonseca # http://alcidesfonseca.com # This file is distributed under the WTFPL diff --git a/pagination/middleware.py b/linaro_django_pagination/middleware.py similarity index 100% rename from pagination/middleware.py rename to linaro_django_pagination/middleware.py diff --git a/pagination/models.py b/linaro_django_pagination/models.py similarity index 100% rename from pagination/models.py rename to linaro_django_pagination/models.py diff --git a/pagination/paginator.py b/linaro_django_pagination/paginator.py similarity index 100% rename from pagination/paginator.py rename to linaro_django_pagination/paginator.py diff --git a/pagination/templates/pagination/pagination.html b/linaro_django_pagination/templates/pagination/pagination.html similarity index 100% rename from pagination/templates/pagination/pagination.html rename to linaro_django_pagination/templates/pagination/pagination.html diff --git a/pagination/templatetags/__init__.py b/linaro_django_pagination/templatetags/__init__.py similarity index 100% rename from pagination/templatetags/__init__.py rename to linaro_django_pagination/templatetags/__init__.py diff --git a/pagination/templatetags/pagination_tags.py b/linaro_django_pagination/templatetags/pagination_tags.py similarity index 100% rename from pagination/templatetags/pagination_tags.py rename to linaro_django_pagination/templatetags/pagination_tags.py diff --git a/pagination/tests.py b/linaro_django_pagination/tests.py similarity index 93% rename from pagination/tests.py rename to linaro_django_pagination/tests.py index 31b3301..343d82f 100644 --- a/pagination/tests.py +++ b/linaro_django_pagination/tests.py @@ -1,6 +1,6 @@ """ >>> from django.core.paginator import Paginator ->>> from pagination.templatetags.pagination_tags import paginate +>>> from linaro_django_pagination.templatetags.pagination_tags import paginate >>> from django.template import Template, Context >>> p = Paginator(range(15), 2) @@ -84,7 +84,7 @@ u'[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]' >>> from paginator import InfinitePaginator >>> InfinitePaginator - + >>> p = InfinitePaginator(range(20), 2, link_template='/bacon/page/%d') >>> p.validate_number(2) 2 @@ -113,7 +113,7 @@ False >>> from paginator import FinitePaginator >>> FinitePaginator - + >>> p = FinitePaginator(range(20), 2, offset=10, link_template='/bacon/page/%d') >>> p.validate_number(2) 2 @@ -148,7 +148,7 @@ True >>> p2.previous_link() '/bacon/page/1' ->>> from pagination.middleware import PaginationMiddleware +>>> from linaro_django_pagination.middleware import PaginationMiddleware >>> from django.core.handlers.wsgi import WSGIRequest >>> from StringIO import StringIO >>> middleware = PaginationMiddleware() diff --git a/setup.py b/setup.py old mode 100644 new mode 100755 index 8ca27c5..2d0dc88 --- a/setup.py +++ b/setup.py @@ -1,13 +1,24 @@ +#!/usr/bin/env python from setuptools import setup, find_packages version = '1.0.7.1' LONG_DESCRIPTION = """ -How to use django-pagination ----------------------------- -``django-pagination`` allows for easy Digg-style pagination without modifying -your views. +About the fork +-------------- + +This project is a fork of apparently dead "django-pagination" project +originally written by 'Eric Florenzano'. It is maintained by the Linaro +Validation/Infrastructure team. Latest releases can be found on launchpad and +pypi. + + +How to use linaro-django-pagination +----------------------------------- + +``linaro-django-pagination`` allows for easy Digg-style pagination without +modifying your views. There are really 5 steps to setting it up with your projects (not including installation, which is covered in INSTALL.txt in this same directory.) @@ -17,7 +28,7 @@ installation, which is covered in INSTALL.txt in this same directory.) INSTALLED_APPS = ( # ... - 'pagination', + 'linaro_django_pagination', ) @@ -26,7 +37,7 @@ installation, which is covered in INSTALL.txt in this same directory.) MIDDLEWARE_CLASSES = ( # ... - 'pagination.middleware.PaginationMiddleware', + 'linaro_django_pagination.middleware.PaginationMiddleware', ) 3. If it's not already added in your setup, add the request context processor. @@ -76,11 +87,11 @@ a way to navigate between the different pages--all without touching your views. Optional Settings ------------------- +----------------- -In django-pagination, there are no required settings. There are, however, a -small set of optional settings useful for changing the default behavior of the -pagination tags. Here's an overview: +In linaro-django-pagination, there are no required settings. There are, +however, a small set of optional settings useful for changing the default +behavior of the pagination tags. Here's an overview: ``PAGINATION_DEFAULT_PAGINATION`` The default amount of items to show on a page if no number is specified. @@ -102,9 +113,9 @@ pagination tags. Here's an overview: """ setup( - name='django-pagination', + name='linaro-django-pagination', version=version, - description="django-pagination", + description="linaro-django-pagination", long_description=LONG_DESCRIPTION, classifiers=[ "Programming Language :: Python", @@ -114,8 +125,8 @@ setup( ], keywords='pagination,django', author='Eric Florenzano', - author_email='floguy@gmail.com', - url='http://django-pagination.googlecode.com/', + author_email='zygmunt.krynicki@linaro.org', + url='http://launchpad.net/linaro-django-pagination/', license='BSD', packages=find_packages(), include_package_data=True, diff --git a/tests/runtests.py b/tests/runtests.py index 6fb4b93..c0fba8f 100644 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -9,7 +9,7 @@ os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' from django.test.simple import run_tests if __name__ == "__main__": - failures = run_tests(['pagination',], verbosity=9) + failures = run_tests(['linaro_django_pagination',], verbosity=9) if failures: sys.exit(failures) # Reset the DJANGO_SETTINGS_MODULE to what it was before running tests. diff --git a/tests/settings.py b/tests/settings.py index ede4087..5ca32a2 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -2,5 +2,5 @@ DATABASE_ENGINE = 'sqlite3' ROOT_URLCONF = '' SITE_ID = 1 INSTALLED_APPS = ( - 'pagination', + 'linaro_django_pagination', ) -- 2.20.1