def __init__(self, session, wcommon, read_only_dbs, writable_db): SlashedResource.__init__(self) # UI entry point self.putChild( '', ElementRenderingResource(_RadioIndexHtmlElement(wcommon))) # Exported radio control objects self.putChild(CAP_OBJECT_PATH_ELEMENT, BlockResource(session, wcommon, _not_deletable)) # Frequency DB self.putChild('dbs', shinysdr.i.db.DatabasesResource(read_only_dbs)) self.putChild('wdb', shinysdr.i.db.DatabaseResource(writable_db)) # Debug graph self.putChild( 'flow-graph', FlowgraphVizResource(wcommon.reactor, session.flowgraph_for_debug())) # Ephemeris self.putChild('ephemeris', EphemerisResource()) # Standard audio-file-over-HTTP audio stream (the ShinySDR web client uses WebSockets instead, but both have the same path modulo protocol) self.putChild(AUDIO_STREAM_PATH_ELEMENT, AudioStreamResource(session))
def __init__(self, session, wcommon, reactor, title, read_only_dbs, writable_db, flowgraph_for_debug): SlashedResource.__init__(self) # UI entry point self.putChild('', _RadioIndexHtmlResource(wcommon=wcommon, title=title)) # Exported radio control objects self.putChild(CAP_OBJECT_PATH_ELEMENT, BlockResource(session, wcommon, not_deletable)) # Frequency DB self.putChild('dbs', shinysdr.i.db.DatabasesResource(read_only_dbs)) self.putChild('wdb', shinysdr.i.db.DatabaseResource(writable_db)) # Debug graph self.putChild('flow-graph', FlowgraphVizResource(reactor, flowgraph_for_debug)) # Ephemeris self.putChild('ephemeris', EphemerisResource())
def __init__(self, session, wcommon, read_only_dbs, writable_db): SlashedResource.__init__(self) # UI entry point self.putChild('', _RadioIndexHtmlResource(wcommon=wcommon)) # Exported radio control objects self.putChild(CAP_OBJECT_PATH_ELEMENT, BlockResource(session, wcommon, _not_deletable)) # Frequency DB self.putChild('dbs', shinysdr.i.db.DatabasesResource(read_only_dbs)) self.putChild('wdb', shinysdr.i.db.DatabaseResource(writable_db)) # Debug graph self.putChild('flow-graph', FlowgraphVizResource(wcommon.reactor, session.flowgraph_for_debug())) # Ephemeris self.putChild('ephemeris', EphemerisResource())
def __init__(self, session, wcommon, read_only_dbs, writable_db): SlashedResource.__init__(self) # UI entry point self.putChild('', ElementRenderingResource(_RadioIndexHtmlElement(wcommon))) # Exported radio control objects self.putChild(CAP_OBJECT_PATH_ELEMENT, BlockResource(session, wcommon, _not_deletable)) # Frequency DB self.putChild('dbs', shinysdr.i.db.DatabasesResource(read_only_dbs)) self.putChild('wdb', shinysdr.i.db.DatabaseResource(writable_db)) # Debug graph self.putChild('flow-graph', FlowgraphVizResource(wcommon.reactor, session.flowgraph_for_debug())) # Ephemeris self.putChild('ephemeris', EphemerisResource()) # Standard audio-file-over-HTTP audio stream (the ShinySDR web client uses WebSockets instead, but both have the same path modulo protocol) self.putChild(AUDIO_STREAM_PATH_ELEMENT, AudioStreamResource(session))