summaryrefslogtreecommitdiff
path: root/pcr/python2-django-tagging
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-02-02 15:51:55 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-02-02 15:51:55 +0100
commit3b61ebb77ffe4e2ec8ea355106dc08bc82f45333 (patch)
tree89f719090af4f0cbabf4c6f8dadabe32441d5228 /pcr/python2-django-tagging
parentbeec7acf14009b85ee4753c42cf0dd6388cf9893 (diff)
pcr/python2-django-tagging: renamed from django-tagging
Diffstat (limited to 'pcr/python2-django-tagging')
-rw-r--r--pcr/python2-django-tagging/CHANGELOG.txt112
-rw-r--r--pcr/python2-django-tagging/PKGBUILD34
2 files changed, 146 insertions, 0 deletions
diff --git a/pcr/python2-django-tagging/CHANGELOG.txt b/pcr/python2-django-tagging/CHANGELOG.txt
new file mode 100644
index 000000000..56060df92
--- /dev/null
+++ b/pcr/python2-django-tagging/CHANGELOG.txt
@@ -0,0 +1,112 @@
+========================
+Django Tagging Changelog
+========================
+
+Version 0.3.1, 22nd January 2010:
+---------------------------------
+
+* Fixed Django 1.2 support (did not add anything new)
+* Fixed #95 — tagging.register won't stomp on model attributes
+
+Version 0.3.0, 22nd August 2009:
+--------------------------------
+
+* Fixes for Django 1.0 compatibility.
+
+* Added a ``tagging.generic`` module for working with list of objects
+ which have generic relations, containing a ``fetch_content_objects``
+ function for retrieving content objects for a list of ``TaggedItem``s
+ using ``number_of_content_types + 1`` queries rather than the
+ ``number_of_tagged_items * 2`` queries you'd get by iterating over the
+ list and accessing each item's ``object`` attribute.
+
+* Added a ``usage`` method to ``ModelTagManager``.
+
+* ``TaggedItemManager``'s methods now accept a ``QuerySet`` or a
+ ``Model`` class. If a ``QuerySet`` is given, it will be used as the
+ basis for the ``QuerySet``s the methods return, so can be used to
+ restrict results to a subset of a model's instances. The
+ `tagged_object_list`` generic view and ModelTaggedItemManager``
+ manager have been updated accordingly.
+
+* Removed ``tagging\tests\runtests.py``, as tests can be run with
+ ``django-admin.py test --settings=tagging.tests.settings``.
+
+* A ``tagging.TagDescriptor`` is now added to models when registered.
+ This returns a ``tagging.managers.ModelTagManager`` when accessed on a
+ model class, and provide access to and control over tags when used on
+ an instance.
+
+* Added ``tagging.register`` to register models with the tagging app.
+ Initially, a ``tagging.managers.ModelTaggedItemManager`` is added for
+ convenient access to tagged items.
+
+* Moved ``TagManager`` and ``TaggedItemManager`` to ``models.py`` - gets
+ rid of some import related silliness, as ``TagManager`` needs access
+ to ``TaggedItem``.
+
+Version 0.2.1, 16th Jan 2008:
+-----------------------------
+
+* Fixed a bug with space-delimited tag input handling - duplicates
+ weren't being removed and the list of tag names wasn't sorted.
+
+Version 0.2, 12th Jan 2008:
+---------------------------
+
+Packaged from revision 122 in Subversion; download at
+http://django-tagging.googlecode.com/files/tagging-0.2.zip
+
+* Added a ``tag_cloud_for_model`` template tag.
+
+* Added a ``MAX_TAG_LENGTH`` setting.
+
+* Multi-word tags are here - simple space-delimited input still works.
+ Double quotes and/or commas are used to delineate multi- word tags.
+ As far as valid tag contents - anything goes, at least initially.
+
+* BACKWARDS-INCOMPATIBLE CHANGE - ``django.utils.get_tag_name_list`` and
+ related regular expressions have been removed in favour of a new tag
+ input parsing function, ``django.utils.parse_tag_input``.
+
+* BACKWARDS-INCOMPATIBLE CHANGE - ``Tag`` and ``TaggedItem`` no longer
+ declare an explicit ``db_table``. If you can't rename your tables,
+ you'll have to put these back in manually.
+
+* Fixed a bug in calculation of logarithmic tag clouds - ``font_size``
+ attributes were not being set in some cases when the least used tag in
+ the cloud had been used more than once.
+
+* For consistency of return type, ``TaggedItemManager.get_by_model`` now
+ returns an empty ``QuerySet`` instead of an empty ``list`` if
+ non-existent tags were given.
+
+* Fixed a bug caused by ``cloud_for_model`` not passing its
+ ``distribution`` argument to ``calculate_cloud``.
+
+* Added ``TaggedItemManager.get_union_by_model`` for looking up items
+ tagged with any one of a list of tags.
+
+* Added ``TagManager.add_tag`` for adding a single extra tag to an
+ object.
+
+* Tag names can now be forced to lowercase before they are saved to the
+ database by adding the appropriate ``FORCE_LOWERCASE_TAGS`` setting to
+ your project's settings module. This feature defaults to being off.
+
+* Fixed a bug where passing non-existent tag names to
+ ``TaggedItemManager.get_by_model`` caused database errors with some
+ backends.
+
+* Added ``tagged_object_list`` generic view for displaying paginated
+ lists of objects for a given model which have a given tag, and
+ optionally related tags for that model.
+
+
+Version 0.1, 30th May 2007:
+---------------------------
+
+Packaged from revision 79 in Subversion; download at
+http://django-tagging.googlecode.com/files/tagging-0.1.zip
+
+* First packaged version using distutils.
diff --git a/pcr/python2-django-tagging/PKGBUILD b/pcr/python2-django-tagging/PKGBUILD
new file mode 100644
index 000000000..65d1d6703
--- /dev/null
+++ b/pcr/python2-django-tagging/PKGBUILD
@@ -0,0 +1,34 @@
+# Contributor (AUR): Andrey Mivrenik <gim at fastmail dot fm>
+# Contributor (AUR): Ryan Coyner <rcoyner@gmail.com>
+# Contributor (AUR): James Pearson <james.m.pearson+arch@gmail.com>
+# Maintainer : Aurélien Desbrières <aurelien@hackers.camp>
+
+# parabola changes and rationale:
+# - added replaces for previous pkgname 'django-tagging' (2018-02-01)
+
+pkgname=python2-django-tagging
+_pkgname=django-tagging
+pkgver=0.4.1
+pkgrel=1
+pkgdesc="A generic tagging application for Django projects"
+arch=('any')
+url='https://pypi.python.org/pypi/django-tagging'
+license=('MIT')
+depends=('python2-django')
+makedepends=('python2-setuptools')
+replaces=('django-tagging')
+source=("https://pypi.python.org/packages/source/d/django-tagging/django-tagging-${pkgver}.tar.gz")
+sha256sums=('35802daf35f90aa022d59f7d7d485c719c29c4efbde1bf966d44017e1e64602b')
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python2 setup.py build
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ python2 setup.py install --root=${pkgdir} --optimize=1
+ install -D -m644 LICENSE.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: