[Python-modules-commits] r11829 - in packages/django-lean/trunk/debian (7 files)

statik-guest at users.alioth.debian.org statik-guest at users.alioth.debian.org
Sat Feb 20 17:12:58 UTC 2010


    Date: Saturday, February 20, 2010 @ 17:12:52
  Author: statik-guest
Revision: 11829

Fixed standards version, added a patch for dropping staff decorator.

Added:
  packages/django-lean/trunk/debian/README.source
  packages/django-lean/trunk/debian/patches/
  packages/django-lean/trunk/debian/patches/drop-staff-decorator.patch
  packages/django-lean/trunk/debian/patches/series
Modified:
  packages/django-lean/trunk/debian/changelog
  packages/django-lean/trunk/debian/control
  packages/django-lean/trunk/debian/rules

Added: packages/django-lean/trunk/debian/README.source
===================================================================
--- packages/django-lean/trunk/debian/README.source	                        (rev 0)
+++ packages/django-lean/trunk/debian/README.source	2010-02-20 17:12:52 UTC (rev 11829)
@@ -0,0 +1,4 @@
+This package uses quilt to manage all modifications to the upstream source.
+Changes are stored in the source package as diffs in debian/patches and
+applied during the build.
+See /usr/share/doc/quilt/README.source for a detailed explanation.

Modified: packages/django-lean/trunk/debian/changelog
===================================================================
--- packages/django-lean/trunk/debian/changelog	2010-02-20 16:42:03 UTC (rev 11828)
+++ packages/django-lean/trunk/debian/changelog	2010-02-20 17:12:52 UTC (rev 11829)
@@ -1,4 +1,4 @@
-django-lean (0.1-1) unstable; urgency=low
+django-lean (0.1-1) lucid; urgency=low
 
   * Initial release (Closes: #568694).
 

Modified: packages/django-lean/trunk/debian/control
===================================================================
--- packages/django-lean/trunk/debian/control	2010-02-20 16:42:03 UTC (rev 11828)
+++ packages/django-lean/trunk/debian/control	2010-02-20 17:12:52 UTC (rev 11829)
@@ -4,10 +4,11 @@
 Build-Depends: debhelper (>= 7.0.50),
  cdbs,
  python,
- python-support (>= 0.6.4)
+ python-support (>= 0.6.4),
+ quilt
 Maintainer: Elliot Murphy <elliot at ubuntu.com>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
-Standards-Version: 3.8.3
+Standards-Version: 3.8.4
 XS-Python-Version: current
 Homepage: http://bitbucket.org/akoha/django-lean/wiki/Home
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-django-lean/trunk/
@@ -21,7 +22,7 @@
  python-numpy,
  python-scipy
 Recommends: libjs-jquery, python-django-south
-Description: A framework for performing and analyzing split-test experiments in Django applications.
+Description: A Django app for performing split-test experiments.
  django-lean aims to be a collection of tools for Lean Startups using the
  Django platform. Currently it provides a framework for implementing
  split-test experiments in JavaScript, Python, or Django template code

Added: packages/django-lean/trunk/debian/patches/drop-staff-decorator.patch
===================================================================
--- packages/django-lean/trunk/debian/patches/drop-staff-decorator.patch	                        (rev 0)
+++ packages/django-lean/trunk/debian/patches/drop-staff-decorator.patch	2010-02-20 17:12:52 UTC (rev 11829)
@@ -0,0 +1,47 @@
+Description: Make permission handling of admin views more flexible
+Forwarded: http://bitbucket.org/statik/django-lean/overview/
+Author: Elliot Murphy <elliot at ubuntu.com>
+Last-Update: 2010-02-20
+Index: django-lean-0.1.obsolete.0.202155415508063/experiments/views.py
+===================================================================
+--- django-lean-0.1.obsolete.0.202155415508063.orig/experiments/views.py	2010-02-20 11:15:48.775143764 -0500
++++ django-lean-0.1.obsolete.0.202155415508063/experiments/views.py	2010-02-20 11:35:09.607169981 -0500
+@@ -3,7 +3,6 @@
+ 
+ from datetime import date, timedelta
+ 
+-from django.contrib.admin.views.decorators import staff_member_required
+ from django.http import HttpResponse
+ from django.shortcuts import render_to_response, get_object_or_404
+ from django.template import Context, RequestContext
+@@ -47,7 +46,6 @@
+     return HttpResponse(TRANSPARENT_1X1_PNG, mimetype="image/png")
+ 
+ 
+- at staff_member_required
+ def list_experiments(request, template_name='experiments/list_experiments.html'):
+     """docstring for list_experiments"""
+     context_var = {"experiments": Experiment.objects.order_by("-start_date"),
+@@ -59,7 +57,6 @@
+                               context_instance=RequestContext(request))
+ 
+ 
+- at staff_member_required
+ def experiment_details(request, experiment_name,
+                        template_name="experiments/experiment_details.html"):
+     """
+Index: django-lean-0.1.obsolete.0.202155415508063/experiments/admin_urls.py
+===================================================================
+--- django-lean-0.1.obsolete.0.202155415508063.orig/experiments/admin_urls.py	2010-02-20 11:35:27.995147149 -0500
++++ django-lean-0.1.obsolete.0.202155415508063/experiments/admin_urls.py	2010-02-20 11:36:53.922696390 -0500
+@@ -1,6 +1,8 @@
+ from django.conf.urls.defaults import *
++from django.contrib.admin.views import staff_member_required
++from experiments.views import experiment_details, list_experiments
+ 
+ urlpatterns = patterns('experiments.views',
+                        url(r'^(?P<experiment_name>.+)/$',
+-                           'experiment_details'),
+-                       url(r'^$', 'list_experiments'))
++                           staff_member_required(experiment_details)),
++                       url(r'^$', staff_member_required(list_experiments)))

Added: packages/django-lean/trunk/debian/patches/series
===================================================================
--- packages/django-lean/trunk/debian/patches/series	                        (rev 0)
+++ packages/django-lean/trunk/debian/patches/series	2010-02-20 17:12:52 UTC (rev 11829)
@@ -0,0 +1 @@
+drop-staff-decorator.patch

Modified: packages/django-lean/trunk/debian/rules
===================================================================
--- packages/django-lean/trunk/debian/rules	2010-02-20 16:42:03 UTC (rev 11828)
+++ packages/django-lean/trunk/debian/rules	2010-02-20 17:12:52 UTC (rev 11829)
@@ -4,3 +4,4 @@
 
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk




More information about the Python-modules-commits mailing list