[Debconf-video-commits] r363 - in package/branches/pycon09/src: . debconfvideo/web/pyconvideo

benh at alioth.debian.org benh at alioth.debian.org
Sat Mar 21 17:42:59 UTC 2009


Author: benh
Date: 2009-03-21 17:42:59 +0000 (Sat, 21 Mar 2009)
New Revision: 363

Modified:
   package/branches/pycon09/src/dc-video-schema.sql
   package/branches/pycon09/src/debconfvideo/web/pyconvideo/models.py
Log:
Ensure target filenames are unique.


Modified: package/branches/pycon09/src/dc-video-schema.sql
===================================================================
--- package/branches/pycon09/src/dc-video-schema.sql	2009-03-21 17:32:41 UTC (rev 362)
+++ package/branches/pycon09/src/dc-video-schema.sql	2009-03-21 17:42:59 UTC (rev 363)
@@ -66,7 +66,7 @@
     -- Start and end of the event recording within the file.
     start_time interval(3) NOT NULL,
     end_time interval(3) NOT NULL,
-    event_recording_base_name character varying(150) NOT NULL,
+    event_recording_base_name character varying(150) NOT NULL UNIQUE,
     UNIQUE (event_id, recording_id),
     CHECK (start_time < end_time)
 );

Modified: package/branches/pycon09/src/debconfvideo/web/pyconvideo/models.py
===================================================================
--- package/branches/pycon09/src/debconfvideo/web/pyconvideo/models.py	2009-03-21 17:32:41 UTC (rev 362)
+++ package/branches/pycon09/src/debconfvideo/web/pyconvideo/models.py	2009-03-21 17:42:59 UTC (rev 363)
@@ -96,7 +96,7 @@
     start_time = IntervalField()
     end_time = IntervalField()
     event_recording_base_name = \
-        models.CharField(max_length=150,
+        models.CharField(max_length=150, unique=True,
                          verbose_name='base name for target files')
     def __unicode__(self):
         return u'"%s" in "%s"' % (self.event, self.recording)




More information about the Debconf-video-commits mailing list