]> git.parisson.com Git - teleforma.git/commitdiff
fix
authoryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 17:14:59 +0000 (19:14 +0200)
committeryomguy <yomguy@parisson.com>
Wed, 18 Jul 2012 17:14:59 +0000 (19:14 +0200)
teleforma/views.py

index bc8b43fa8231dec33a9a4b7cf728e07fad636672..7ce55e461085e414983d022168335dd1c6d6be70 100755 (executable)
@@ -3,6 +3,7 @@
 import mimetypes
 import datetime
 import random
+import urllib
 import urllib2
 import json
 
@@ -404,7 +405,7 @@ class ConferenceRecordView(FormView):
         return super(ConferenceRecordView, self).form_valid(form)
 
     def snapshot(self, stream, dir):
-        img = urllib2.urlopen(stream.snapshot_url())
+        img = urllib.urlopen(stream.snapshot_url)
         path = dir + os.sep + 'preview.webp'
         f = open(path, 'w')
         f.write(img.read())