[Debconf-video-commits] r424 - package/branches/pycon09/src

Ryan Verner xf-guest at alioth.debian.org
Tue Apr 14 07:07:46 UTC 2009


Author: xf-guest
Date: 2009-04-14 07:07:46 +0000 (Tue, 14 Apr 2009)
New Revision: 424

Added:
   package/branches/pycon09/src/insert_svg.py
Log:
Misc script not part of workflow - insert generated splash files into database

Added: package/branches/pycon09/src/insert_svg.py
===================================================================
--- package/branches/pycon09/src/insert_svg.py	                        (rev 0)
+++ package/branches/pycon09/src/insert_svg.py	2009-04-14 07:07:46 UTC (rev 424)
@@ -0,0 +1,25 @@
+import datetime
+from pyconvideo.pyconvideo import models
+
+def main():
+    for e in models.Event.objects.all():
+        ve = e.videoevent_set.all()
+        if len(ve) != 1:
+            print "Skipping event %s has %s video events" % (e.event_id, len(ve))
+            continue
+        ve = ve[0]
+
+        title_dv = os.path.join('/video/svg', str(e.event_id) + '.dv')
+        room = e.conference_room
+        vr = models.VideoRecording()
+        vr.conference_room = room
+        vr.file_status = status
+        vr.recording_filename = title_dv
+        vr.recording_duration = '00:00:04'
+        vr.recording_time = datetime.datetime(2009,01,01)
+        ver = models.VideoEventRecording()
+        ver.start_time = "00:00:00"
+        ver.end_time = "00:00:05"
+        ver.event = ve
+        ver.recording = vr
+        print ver.recording


Property changes on: package/branches/pycon09/src/insert_svg.py
___________________________________________________________________
Added: svn:executable
   + *




More information about the Debconf-video-commits mailing list