[Lunar-commits] <moonbase> django-authority: new module for per-object permissions in django apps.

Jannis Pohlmann jannis at xfce.org
Fri Aug 14 03:18:01 CEST 2009


commit be75a5c7c9bfa0eb5781320701d172462006bd4c
Author: Jannis Pohlmann <jannis at xfce.org>
Date:   Fri Aug 14 03:18:01 2009 +0200

    django-authority: new module for per-object permissions in django apps.
---
 python/django-authority/BUILD        |    7 +++++++
 python/django-authority/DEPENDS      |    1 +
 python/django-authority/DETAILS      |   15 +++++++++++++++
 python/django-authority/POST_INSTALL |   16 ++++++++++++++++
 4 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/python/django-authority/BUILD b/python/django-authority/BUILD
new file mode 100644
index 0000000..88773ee
--- /dev/null
+++ b/python/django-authority/BUILD
@@ -0,0 +1,7 @@
+(
+
+  python setup.py config &&
+  prepare_install && 
+  python setup.py install
+
+) > $C_FIFO 2>&1
diff --git a/python/django-authority/DEPENDS b/python/django-authority/DEPENDS
new file mode 100644
index 0000000..3811a73
--- /dev/null
+++ b/python/django-authority/DEPENDS
@@ -0,0 +1 @@
+depends django
diff --git a/python/django-authority/DETAILS b/python/django-authority/DETAILS
new file mode 100644
index 0000000..4339e46
--- /dev/null
+++ b/python/django-authority/DETAILS
@@ -0,0 +1,15 @@
+          MODULE=django-authority
+         VERSION=0.3
+          SOURCE=$MODULE-$VERSION.tar.gz
+      SOURCE_URL=http://bitbucket.org/jezdez/django-authority/downloads/
+      SOURCE_VFY=sha1:f9c5c5241521e69ded8dfea1653e965b4fc59229
+        WEB_SITE=http://bitbucket.org/jezdez/django-authority/src/
+         ENTERED=20090814
+         UPDATED=20090814
+           SHORT="Per-object-permissions for the Django auth app"
+      MAINTAINER=jannis at lunar-linux.org
+
+cat << EOF
+A Django app that provides generic per-object-permissions for Django's
+auth app and helpers to create custom permission checks.
+EOF
diff --git a/python/django-authority/POST_INSTALL b/python/django-authority/POST_INSTALL
new file mode 100644
index 0000000..2ce733b
--- /dev/null
+++ b/python/django-authority/POST_INSTALL
@@ -0,0 +1,16 @@
+# determine the current major Python version
+python_major=`installed_version Python | cut -d. -f1-2`
+
+# determine the Python site-packages path
+python_dir="/usr/lib/python${python_major}/site-packages"
+
+# determine the easy_install .egg file cache
+pth_file="$python_dir/easy-install.pth"
+
+# clear the cache
+rm $pth_file
+
+# put all the .egg files/dirs into the cache
+for egg in $python_dir/*.egg; do
+  echo `basename $egg` >> $pth_file
+done


More information about the Lunar-commits mailing list