mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
dev-python/django-tables2: Drop old
Package-Manager: portage-2.2.27 Signed-off-by: Justin Lecher <jlec@gentoo.org>
This commit is contained in:
@@ -1,6 +1 @@
|
||||
DIST django-tables2-0.16.0.tar.gz 43672 SHA256 53a643166377c44a030d860f3c0f045c4b75e727432ddde4065a67c2df41bf33 SHA512 9d490bbcaab6049d74e81f25c0a2e1ebd3caa00930877661cc823dcfc429f020b3146ec778ccc840951e89f53047e8d6ad71cf7b689cfb76aa2eadf5db54280a WHIRLPOOL 907acbfb5599589ebf5dc49ebedd0f9e07003df7730a5bcc04667207140d9728fbed56afc08ed25167414bc4596a91e2106958223f5c48b5ccea2c6642b0365e
|
||||
DIST django-tables2-1.0.4.tar.gz 57679 SHA256 801b1df349f07f5b548cf4b3d5cddfc26e5969079c7d490f179fb649e76d24af SHA512 ae1381ab23b93759caef259b5063c2149a71c9a808bc4f0a621de454872b354d03e8d7002a95de693e4d3c456366341ac30f200edac069244a0b97d156295953 WHIRLPOOL 03cfd673a16692de118b4eafb7a3fec277daef4045d16508c9a97abcdf2321782703fb4e12b9f26e7fddf799e1d8040028f43a0584f4bdc59f481c504f21586f
|
||||
DIST django-tables2-1.0.5.tar.gz 981605 SHA256 f1407ab766b29acf753cdc1cd40e966589b2a57262e5ecc202c9f3b723f68a79 SHA512 460c1d7cf615e251671ab8aeb2fe396387cc0ef8f1bf3414c6b519ef528b7d16fa084669b5268b21ad5da6e85d0d0a94e2de159475e552b32ab4df5e12171c04 WHIRLPOOL 1f7dca4edd02aac180324c6f5207e66abb88bd373766837f47a8831a6e9fe8296d428afc3ea6f9878d9319f96b5d8d94c20dd504d59ce7637ffa0ef67b397bb3
|
||||
DIST django-tables2-1.0.6.tar.gz 970971 SHA256 29fda34506d220dba3e95c02b96fa3f323c91c8ffb6d957e51f49c29721752f6 SHA512 4b5d654c17ab2b38657e88ba8ee66170195b89b2490b09c66c9753b1710326353ff071e4a7baafaa44c26f2ec1f2985f03e36d073f64a6bfe6d8f02780aaf217 WHIRLPOOL 7904fc5795cc944a79949c34d6a3560b92c19450a3894d5bbf4cb748502c2e0082c9005c40106a7997f83272e03df53eca6e5a2e0b41bd85ac1c2f4c0532e59e
|
||||
DIST django-tables2-1.0.7.tar.gz 966838 SHA256 6f837b75b209db7a2d2bf279a02946bddc53310ed7e753dec8469924e10eb7e2 SHA512 672568e421616a9982ea37e527c6ab8bd9b96bc7a835616bdd1be8e7d9b350e9e43d137d0aa704660a5b788c13a9247a67912bafbe531bea08a6787bc6595be7 WHIRLPOOL 044897173464ac87222e1282cf40df7646593ff125bd7ee535e83aec3989d69a00695bc9c2d367fb08c4114855ecf53af6524a441de7639b2ed9818ce6cdeb25
|
||||
DIST django-tables2-1.1.0.tar.gz 966103 SHA256 46bdcae04087a20911dc10e30383743bca464696448e9351424efe2582a90499 SHA512 d7386df7651a3cdab42e40963d26594cd776614846fa7eda9208f0795b1f8c6270910904f44782480f0b782d0b139153805e41cdecd43f5bc2d30b67acb3fc6c WHIRLPOOL 11a4a573f96a198cd09b57a136bac1eaded18f704e1b117c7b4b49da26716447b31b1866d5da7058b3eb88e5372d5c9f6e0602a08ee221d03f20d617070c03a5
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Table/data-grid framework for Django"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/django-tables2/ https://github.com/bradleyayers/django-tables2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-django-1.9-deprecation.patch )
|
||||
@@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Table/data-grid framework for Django"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/django-tables2/ https://github.com/bradleyayers/django-tables2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
@@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Table/data-grid framework for Django"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/django-tables2/ https://github.com/bradleyayers/django-tables2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
@@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Table/data-grid framework for Django"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/django-tables2/ https://github.com/bradleyayers/django-tables2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
@@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Table/data-grid framework for Django"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/django-tables2/ https://github.com/bradleyayers/django-tables2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
@@ -1,23 +0,0 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=5
|
||||
|
||||
PYTHON_COMPAT=( python2_7 python3_{3,4} pypy )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="Table/data-grid framework for Django"
|
||||
HOMEPAGE="https://pypi.python.org/pypi/django-tables2/ https://github.com/bradleyayers/django-tables2/"
|
||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD-2"
|
||||
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="dev-python/six[${PYTHON_USEDEP}]"
|
||||
DEPEND="${RDEPEND}
|
||||
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||
"
|
||||
@@ -1,118 +0,0 @@
|
||||
From cb71f869bbc8aac3a14f3d4d1f67641e21892bba Mon Sep 17 00:00:00 2001
|
||||
From: Gert Steyn <gert@senseware.com>
|
||||
Date: Thu, 19 Mar 2015 12:20:42 +0200
|
||||
Subject: [PATCH] Changed from django.utils.datastructures.SortedDict
|
||||
(deprecated) to collections.OrderedDict
|
||||
|
||||
---
|
||||
django_tables2/columns/base.py | 6 +++---
|
||||
django_tables2/tables.py | 10 +++++-----
|
||||
django_tables2/templatetags/django_tables2.py | 4 ++--
|
||||
3 files changed, 10 insertions(+), 10 deletions(-)
|
||||
|
||||
diff --git a/django_tables2/columns/base.py b/django_tables2/columns/base.py
|
||||
index 20b3477..3b377e6 100644
|
||||
--- a/django_tables2/columns/base.py
|
||||
+++ b/django_tables2/columns/base.py
|
||||
@@ -1,9 +1,9 @@
|
||||
# coding: utf-8
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
from django.db.models.fields import FieldDoesNotExist
|
||||
-from django.utils.datastructures import SortedDict
|
||||
from django_tables2.templatetags.django_tables2 import title
|
||||
from django_tables2.utils import A, AttributeDict, OrderBy, OrderByTuple
|
||||
+from collections import OrderedDict
|
||||
from itertools import islice
|
||||
import six
|
||||
import warnings
|
||||
@@ -498,7 +498,7 @@ class BoundColumns(object):
|
||||
A `BoundColumns` object is a container for holding `BoundColumn` objects.
|
||||
It provides methods that make accessing columns easier than if they were
|
||||
stored in a `list` or `dict`. `Columns` has a similar API to a `dict` (it
|
||||
- actually uses a `~django.utils.datastructures.SortedDict` interally).
|
||||
+ actually uses a `~collections.OrderedDict` interally).
|
||||
|
||||
At the moment you'll only come across this class when you access a
|
||||
`.Table.columns` property.
|
||||
@@ -508,7 +508,7 @@ class BoundColumns(object):
|
||||
"""
|
||||
def __init__(self, table):
|
||||
self.table = table
|
||||
- self.columns = SortedDict()
|
||||
+ self.columns = OrderedDict()
|
||||
for name, column in six.iteritems(table.base_columns):
|
||||
self.columns[name] = bc = BoundColumn(table, column, name)
|
||||
bc.render = getattr(table, 'render_' + name, column.render)
|
||||
diff --git a/django_tables2/tables.py b/django_tables2/tables.py
|
||||
index 01a0671..2f31069 100644
|
||||
--- a/django_tables2/tables.py
|
||||
+++ b/django_tables2/tables.py
|
||||
@@ -9,9 +9,9 @@
|
||||
import sys
|
||||
from django.core.paginator import Paginator
|
||||
from django.db.models.fields import FieldDoesNotExist
|
||||
-from django.utils.datastructures import SortedDict
|
||||
from django.template import RequestContext
|
||||
from django.template.loader import get_template
|
||||
+from collections import OrderedDict
|
||||
import six
|
||||
import warnings
|
||||
|
||||
@@ -172,10 +172,10 @@ def __new__(mcs, name, bases, attrs):
|
||||
if hasattr(base, "base_columns"):
|
||||
parent_columns = list(base.base_columns.items()) + parent_columns
|
||||
# Start with the parent columns
|
||||
- attrs["base_columns"] = SortedDict(parent_columns)
|
||||
+ attrs["base_columns"] = OrderedDict(parent_columns)
|
||||
# Possibly add some generated columns based on a model
|
||||
if opts.model:
|
||||
- extra = SortedDict()
|
||||
+ extra = OrderedDict()
|
||||
# honor Table.Meta.fields, fallback to model._meta.fields
|
||||
if opts.fields:
|
||||
# Each item in opts.fields is the name of a model field or a
|
||||
@@ -194,7 +194,7 @@ def __new__(mcs, name, bases, attrs):
|
||||
attrs["base_columns"].update(extra)
|
||||
|
||||
# Explicit columns override both parent and generated columns
|
||||
- attrs["base_columns"].update(SortedDict(cols))
|
||||
+ attrs["base_columns"].update(OrderedDict(cols))
|
||||
# Apply any explicit exclude setting
|
||||
for exclusion in opts.exclude:
|
||||
if exclusion in attrs["base_columns"]:
|
||||
@@ -204,7 +204,7 @@ def __new__(mcs, name, bases, attrs):
|
||||
opts.sequence.expand(attrs["base_columns"].keys())
|
||||
# Table's sequence defaults to sequence declared in Meta
|
||||
#attrs['_sequence'] = opts.sequence
|
||||
- attrs["base_columns"] = SortedDict(((x, attrs["base_columns"][x]) for x in opts.sequence))
|
||||
+ attrs["base_columns"] = OrderedDict(((x, attrs["base_columns"][x]) for x in opts.sequence))
|
||||
|
||||
# set localize on columns
|
||||
for col_name in attrs["base_columns"].keys():
|
||||
diff --git a/django_tables2/templatetags/django_tables2.py b/django_tables2/templatetags/django_tables2.py
|
||||
index 1e72d74..1ca91de 100644
|
||||
--- a/django_tables2/templatetags/django_tables2.py
|
||||
+++ b/django_tables2/templatetags/django_tables2.py
|
||||
@@ -5,12 +5,12 @@
|
||||
from django.template import TemplateSyntaxError, Variable, Node
|
||||
from django.template.loader import get_template, select_template
|
||||
from django.template.defaultfilters import stringfilter, title as old_title
|
||||
-from django.utils.datastructures import SortedDict
|
||||
from django.utils.http import urlencode
|
||||
from django.utils.html import escape
|
||||
from django.utils.safestring import mark_safe
|
||||
import django_tables2 as tables
|
||||
from django_tables2.config import RequestConfig
|
||||
+from collections import OrderedDict
|
||||
import re
|
||||
import six
|
||||
import tokenize
|
||||
@@ -35,7 +35,7 @@ def token_kwargs(bits, parser):
|
||||
"""
|
||||
if not bits:
|
||||
return {}
|
||||
- kwargs = SortedDict()
|
||||
+ kwargs = OrderedDict()
|
||||
while bits:
|
||||
match = kwarg_re.match(bits[0])
|
||||
if not match or not match.group(1):
|
||||
Reference in New Issue
Block a user