Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
self.putChild("mobile", MobileController(session))
self.putChild("m", static.File(getPublicPath() + "/mobile"))
for static_val in ('js', 'css', 'static', 'images', 'fonts'):
self.putChild(static_val, static.File(getPublicPath() + '/' + static_val))
for static_val in ('themes', 'webtv', 'vxg'):
if os.path.exists(getPublicPath(static_val)):
self.putChild(static_val, static.File(getPublicPath() + '/' + static_val))
if os.path.exists('/usr/bin/shellinaboxd'):
self.putChild("terminal", proxy.ReverseProxyResource('::1', 4200, '/'))
self.putChild("ipkg", IpkgController(session))
self.putChild("autotimer", ATController(session))
self.putChild("serienrecorder", SRController(session))
self.putChild("epgrefresh", ERController(session))
self.putChild("bouqueteditor", BQEController(session))
self.putChild("transcoding", TranscodingController())
self.putChild("wol", WOLClientController())
self.putChild("wolsetup", WOLSetupController(session))
if PICON_PATH:
self.putChild("picon", static.File(PICON_PATH))
try:
from NET import NetController
self.putChild("net", NetController(session))
except:
pass