var conferenceUtils = {
stop : function(id){
json([id],'teleforma.conference_stop',function(){
- location.href = '{% url teleforma-home %}';});
+ location.href = '{% url teleforma-conference-record %}';});
}}
jQuery(window).ready(function(){
host = request.META['HTTP_HOST']
if ':' in host:
host = host.split(':')[0]
+ if host == 'localhost':
+ host = '127.0.0.1'
return host
def get_periods(user):
except:
pass
+ return super(ConferenceRecordView, self).form_valid(form)
+
def snapshot(self, url, dir):
width = 160
height = 90
f = open(path, 'w')
f.write(img.read())
f.close()
- command = '/usr/bin/dwebp ' + path + ' -o ' + dir + os.sep + 'preview.png &'
+ command = 'dwebp ' + path + ' -o ' + dir + os.sep + 'preview.png &'
os.system(command)
@method_decorator(login_required)