[SCM] live-studio branch, master, updated. be51da814fb12d25dce46a7f078a46f5c89bd777

Chris Lamb lamby at debian.org
Fri Jul 30 02:52:34 UTC 2010


The following commit has been merged in the master branch:
commit 24774ea44b0d7bd48a09f5f812f08fb3a18ec72f
Author: Chris Lamb <lamby at debian.org>
Date:   Wed Jul 28 17:35:28 2010 -0400

    Add stub view/edit config view.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>

diff --git a/live_studio_www/config/urls.py b/live_studio_www/config/urls.py
index 6214af8..1261125 100644
--- a/live_studio_www/config/urls.py
+++ b/live_studio_www/config/urls.py
@@ -2,4 +2,5 @@ from django.conf.urls.defaults import *
 
 urlpatterns = patterns('live_studio_www.config.views',
     url(r'configs$', 'configs', name='configs'),
+    url(r'config/(?P<config_id>\d+)$', 'config', name='config'),
 )
diff --git a/live_studio_www/config/views.py b/live_studio_www/config/views.py
index fefae82..13fa6fb 100644
--- a/live_studio_www/config/views.py
+++ b/live_studio_www/config/views.py
@@ -1,4 +1,15 @@
+from django.shortcuts import get_object_or_404
+
 from live_studio_www.utils import render_response
 
+from .models import Config
+
 def configs(request):
     return render_response(request, 'config/configs.html')
+
+def config(request, config_id):
+    c = get_object_or_404(Config, pk=config_id, user=request.user)
+
+    return render_response(request, 'config/config.html', {
+        'config': c,
+    })

-- 
live-studio



More information about the debian-live-changes mailing list