Coverage for coherence/upnp/services/servers/media_receiver_registrar_server.py : 67%

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 2006, Frank Scholz <coherence@beebits.net>
# Content Directory service
r = {'Result': 1} return r
r = {'Result': 1} return r
""" in parameter RegistrationReqMsg """ RegistrationReqMsg = kwargs['RegistrationReqMsg'] """ FIXME: check with WMC and WMP """ r = {'RegistrationRespMsg': 'WTF should be in here?'} return r
backend = self.device.backend self.version, backend)
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 MediaReceiverRegistrar</p>' \ '<p><ul>%s</ul></p></html>' % self.listchilds( request.uri.decode('utf-8')) |