]> git.parisson.com Git - teleforma.git/commitdiff
fix push
authoryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 23:14:44 +0000 (01:14 +0200)
committeryomguy <yomguy@parisson.com>
Tue, 24 Jul 2012 23:14:44 +0000 (01:14 +0200)
teleforma/views.py

index b1617c1797568b2a6c92976e73e0f0f9e9694949..f95a462769c400afd2b61f85138106c6867e1acf 100755 (executable)
@@ -357,17 +357,14 @@ class ConferenceView(DetailView):
             station.save()
             station.stop()
         if 'telecaster' in settings.INSTALLED_APPS:
-            self.push(conference)
+            url = 'http://' + settings.TELECASTER_MASTER_SERVER + '/json/'
+            s = ServiceProxy(url)
+            s.teleforma.stop_conference(conference.code)
 
     @method_decorator(login_required)
     def dispatch(self, *args, **kwargs):
         return super(ConferenceView, self).dispatch(*args, **kwargs)
 
-    def push(self, conference):
-        url = 'http://' + settings.TELECASTER_MASTER_SERVER + '/json/'
-        s = ServiceProxy(url)
-        s.teleforma.stop_conference(conference.code)
-
 
 class ConferenceRecordView(FormView):
     "Conference record form : TeleCaster module required"