From 0078fe1a88df036613ad5b5e981d57e71f077e5b Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 18 Apr 2025 20:06:16 +0200 Subject: [PATCH] remove SourceStatusView --- teleforma/views/core.py | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/teleforma/views/core.py b/teleforma/views/core.py index e648e1cf..3767fcc2 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -1271,36 +1271,6 @@ class HelpView(TemplateView): return super(HelpView, self).dispatch(*args, **kwargs) -class SourcesStatusView(ListView): - - model = Source - template_name='teleforma/source_monitors.html' - - @jsonrpc_method('telecaster.get_source_status') - def get_source_status(request, public_id): - source = Source.objects.get(public_id=public_id) - url = 'https://' + source.ip + '/json/' - service = ServiceProxy(url) - status = s.teleforma.get_server_status() - return status - - @jsonrpc_method('telecaster.get_source_station_status') - def get_source_station_status(request, public_id): - source = Source.objects.get(public_id=public_id) - url = 'https://' + source.ip + '/json/' - service = ServiceProxy(url) - station = s.teleforma.get_station_status() - return station - - @jsonrpc_method('telecaster.source_station_start') - def start(request, station_dict): - pass - - @jsonrpc_method('telecaster.source_station_stop') - def stop(request): - pass - - class PDFTemplateResponseMixin(TemplateResponseMixin): """ Mixin for Django class based views. -- 2.39.5