[Debconf-video-commits] r405 - package/branches/pycon09/src/pyconvideo/pyconvideo

xf-guest at alioth.debian.org xf-guest at alioth.debian.org
Thu Mar 26 21:56:00 UTC 2009


Author: xf-guest
Date: 2009-03-26 21:56:00 +0000 (Thu, 26 Mar 2009)
New Revision: 405

Modified:
   package/branches/pycon09/src/pyconvideo/pyconvideo/views.py
Log:
Extra view for new recordings only

Modified: package/branches/pycon09/src/pyconvideo/pyconvideo/views.py
===================================================================
--- package/branches/pycon09/src/pyconvideo/pyconvideo/views.py	2009-03-26 21:55:30 UTC (rev 404)
+++ package/branches/pycon09/src/pyconvideo/pyconvideo/views.py	2009-03-26 21:56:00 UTC (rev 405)
@@ -21,9 +21,17 @@
         'pyconvideo/videorecording_list.html',
         {'completed': request.GET.get('completed'),
          'object_list':
-             models.VideoRecording.objects.all().order_by('recording_time').select_related(),
+             models.VideoRecording.objects.all().order_by('conference_room', 'recording_time').select_related(),
          'user': request.user})
 
+def list_recordings_unchecked(request, completed=False):
+    return render_to_response(
+        'pyconvideo/videorecording_list.html',
+        {'completed': completed,
+         'object_list':
+             models.VideoRecording.objects.filter(file_status__file_status_code="X").order_by('conference_room', 'recording_time').select_related(),
+         'user': request.user})
+
 class IntervalField(forms.CharField):
     help_text = 'A valid time (mm:ss or hh:mm:ss)'
     def clean(self, value):




More information about the Debconf-video-commits mailing list