From: yomguy Date: Wed, 18 Jul 2012 17:14:59 +0000 (+0200) Subject: fix X-Git-Tag: 0.7-dev^2~88 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8f343dcc4c6e264e63f3bddb1fdf3adba0334a32;p=teleforma.git fix --- diff --git a/teleforma/views.py b/teleforma/views.py index bc8b43fa..7ce55e46 100755 --- a/teleforma/views.py +++ b/teleforma/views.py @@ -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())