pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www py-djangocms-attributes-field: added version 0.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d5a052599f5b
branches:  trunk
changeset: 315287:d5a052599f5b
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Nov 20 18:38:34 2018 +0000

description:
py-djangocms-attributes-field: added version 0.4.0

This project aims to provide a sensible means of storing and managing arbitrary
HTML element attributes for later emitting them into templates.

There are a wide variety of types of attributes and using the "normal" Django
method of adding ModelFields for each on a business model is cumbersome at best
and moreover may require related tables to allow cases where any number of the
same type of attribute should be supported (i.e., data-attributes). This can
contribute to performance problems.

To avoid these pitfalls, this package allows all of these attributes to be
stored together in a single text field in the database as a JSON blob, but
provides a nice widget to provide an intuitive, key/value pair interface and
provide sensible validation of the keys used.

diffstat:

 www/Makefile                               |   3 ++-
 www/py-djangocms-attributes-field/DESCR    |  13 +++++++++++++
 www/py-djangocms-attributes-field/Makefile |  18 ++++++++++++++++++
 www/py-djangocms-attributes-field/PLIST    |  19 +++++++++++++++++++
 www/py-djangocms-attributes-field/distinfo |   6 ++++++
 5 files changed, 58 insertions(+), 1 deletions(-)

diffs (89 lines):

diff -r a21848624a5d -r d5a052599f5b www/Makefile
--- a/www/Makefile      Tue Nov 20 18:16:22 2018 +0000
+++ b/www/Makefile      Tue Nov 20 18:38:34 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1348 2018/11/18 08:49:17 ryoon Exp $
+# $NetBSD: Makefile,v 1.1349 2018/11/20 18:38:34 adam Exp $
 #
 
 COMMENT=       Packages related to the World Wide Web
@@ -659,6 +659,7 @@
 SUBDIR+=       py-django14
 SUBDIR+=       py-django2
 SUBDIR+=       py-djangocms-admin-style
+SUBDIR+=       py-djangocms-attributes-field
 SUBDIR+=       py-djangocms-file
 SUBDIR+=       py-djangocms-flash
 SUBDIR+=       py-djangocms-googlemap
diff -r a21848624a5d -r d5a052599f5b www/py-djangocms-attributes-field/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-djangocms-attributes-field/DESCR   Tue Nov 20 18:38:34 2018 +0000
@@ -0,0 +1,13 @@
+This project aims to provide a sensible means of storing and managing arbitrary
+HTML element attributes for later emitting them into templates.
+
+There are a wide variety of types of attributes and using the "normal" Django
+method of adding ModelFields for each on a business model is cumbersome at best
+and moreover may require related tables to allow cases where any number of the
+same type of attribute should be supported (i.e., data-attributes). This can
+contribute to performance problems.
+
+To avoid these pitfalls, this package allows all of these attributes to be
+stored together in a single text field in the database as a JSON blob, but
+provides a nice widget to provide an intuitive, key/value pair interface and
+provide sensible validation of the keys used.
diff -r a21848624a5d -r d5a052599f5b www/py-djangocms-attributes-field/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-djangocms-attributes-field/Makefile        Tue Nov 20 18:38:34 2018 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2018/11/20 18:38:34 adam Exp $
+
+DISTNAME=      djangocms-attributes-field-0.4.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    www python
+MASTER_SITES=  ${MASTER_SITE_PYPI:=d/djangocms-attributes-field/}
+
+MAINTAINER=    adam%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/divio/djangocms-attributes-field
+COMMENT=       Implementation of JSONField for arbitrary HTML element attributes
+LICENSE=       modified-bsd
+
+DEPENDS+=      ${PYPKGPREFIX}-django>=1.11:../../www/py-django
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r a21848624a5d -r d5a052599f5b www/py-djangocms-attributes-field/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-djangocms-attributes-field/PLIST   Tue Nov 20 18:38:34 2018 +0000
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/20 18:38:34 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/djangocms_attributes_field/__init__.py
+${PYSITELIB}/djangocms_attributes_field/__init__.pyc
+${PYSITELIB}/djangocms_attributes_field/__init__.pyo
+${PYSITELIB}/djangocms_attributes_field/fields.py
+${PYSITELIB}/djangocms_attributes_field/fields.pyc
+${PYSITELIB}/djangocms_attributes_field/fields.pyo
+${PYSITELIB}/djangocms_attributes_field/models.py
+${PYSITELIB}/djangocms_attributes_field/models.pyc
+${PYSITELIB}/djangocms_attributes_field/models.pyo
+${PYSITELIB}/djangocms_attributes_field/widgets.py
+${PYSITELIB}/djangocms_attributes_field/widgets.pyc
+${PYSITELIB}/djangocms_attributes_field/widgets.pyo
diff -r a21848624a5d -r d5a052599f5b www/py-djangocms-attributes-field/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/py-djangocms-attributes-field/distinfo        Tue Nov 20 18:38:34 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/11/20 18:38:34 adam Exp $
+
+SHA1 (djangocms-attributes-field-0.4.0.tar.gz) = ddbe3d56394e53c33651c13fbdf9a8ba336a7b1f
+RMD160 (djangocms-attributes-field-0.4.0.tar.gz) = a61a4308160ec7aa63b55dc911d751886b60c128
+SHA512 (djangocms-attributes-field-0.4.0.tar.gz) = b05e0a2a0fdd0dc5cb1f01be17775223e3eb7ab65ae6efe5497247e165f1f7379d885df858fc6246ff03810b797313cc623a7a1a301b76809d122f40660f890c
+Size (djangocms-attributes-field-0.4.0.tar.gz) = 8285 bytes



Home | Main Index | Thread Index | Old Index