summaryrefslogtreecommitdiff
path: root/databases/py-django-transaction-hooks
diff options
context:
space:
mode:
Diffstat (limited to 'databases/py-django-transaction-hooks')
-rw-r--r--databases/py-django-transaction-hooks/Makefile22
-rw-r--r--databases/py-django-transaction-hooks/distinfo2
-rw-r--r--databases/py-django-transaction-hooks/pkg-descr14
3 files changed, 38 insertions, 0 deletions
diff --git a/databases/py-django-transaction-hooks/Makefile b/databases/py-django-transaction-hooks/Makefile
new file mode 100644
index 000000000000..96e2e84f37ba
--- /dev/null
+++ b/databases/py-django-transaction-hooks/Makefile
@@ -0,0 +1,22 @@
+# Created by: René Ladan <rene@freebsd.org>
+# $FreeBSD$
+
+PORTNAME= django-transaction-hooks
+PORTVERSION= 0.2
+CATEGORIES= databases python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= rene@freebsd.org
+COMMENT= Django database backends to register transaction-commit hooks
+
+LICENSE= BSD3CLAUSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django>=1.6.1:${PORTSDIR}/www/py-django
+
+NO_ARCH= yes
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/databases/py-django-transaction-hooks/distinfo b/databases/py-django-transaction-hooks/distinfo
new file mode 100644
index 000000000000..55d6ae07afbd
--- /dev/null
+++ b/databases/py-django-transaction-hooks/distinfo
@@ -0,0 +1,2 @@
+SHA256 (django-transaction-hooks-0.2.tar.gz) = 51bab09547fab673a24d6c59f1df560183b3a49f24a7a5bf35e7eb34ef939e79
+SIZE (django-transaction-hooks-0.2.tar.gz) = 7527
diff --git a/databases/py-django-transaction-hooks/pkg-descr b/databases/py-django-transaction-hooks/pkg-descr
new file mode 100644
index 000000000000..a1af20cf13ea
--- /dev/null
+++ b/databases/py-django-transaction-hooks/pkg-descr
@@ -0,0 +1,14 @@
+A better alternative to the native transaction signals of Django.
+
+Sometimes you need to fire off an action related to the current database
+transaction, but only if the transaction successfully commits. Examples:
+a Celery task, an email notification, or a cache invalidation.
+
+Doing this correctly while accounting for savepoints that might be
+individually rolled back, closed/dropped connections, and idiosyncrasies of
+various databases, is non-trivial. Transaction signals just make it easier
+to do it wrong.
+
+django-transaction-hooks does the heavy lifting so you don't have to.
+
+WWW: https://github.com/arljm/django-transaction-hooks/