Coverage for coherence/upnp/services/servers/scheduled_recording_server.py : 52%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php
# Copyright 2009, Frank Scholz <coherence@beebits.net>
# ScheduledRecording service
service.ServiceControl.__init__(self) UPnPPublisher.__init__(self) self.service = server self.variables = server.get_variables() self.actions = server.get_actions()
self, 'ScheduledRecording', self.version, backend)
self.control = ScheduledRecordingControl(self) self.putChild(self.scpd_url, service.scpdXML(self, self.control)) self.putChild(self.control_url, self.control)
if isinstance(uri, bytes): uri = uri.decode('utf-8') cl = '' for c in self.children: cl += '<li><a href=%s/%s>%s</a></li>' % (uri, c, c) return cl
return \ '<html><p>root of the ScheduledRecording</p>' \ '<p><ul>%s</ul></p></html>' % self.listchilds( request.uri.decode('utf-8')) |