Exemple #1
0
 def __init__(self, session, path=""):
     BaseController.__init__(self, path=path, session=session)
     self.putChild(b"web", BQEWebController(session))
     self.putChild(b"api", BQEApiController(session))
     self.putChild(b"tmp", static.File(b"/tmp"))  # nosec
     self.putChild(b"uploadrestore", BQEUploadFile(session))
     self.putChild(b"import", BQEImport(session))
	def __init__(self, session, path=""):
		BaseController.__init__(self, path=path, session=session)

		self.putChild2("web", WebController(session))
		self.putGZChild("api", ApiController(session))
		self.putGZChild("ajax", AjaxController(session))
		self.putChild2("file", FileController())
		self.putChild2("grab", grabScreenshot(session))
		if os.path.exists(getPublicPath('mobile')):
			self.putChild2("mobile", MobileController(session))
			self.putChild2("m", static.File(getPublicPath() + "/mobile"))
		for static_val in ('js', 'css', 'static', 'images', 'fonts'):
			self.putChild2(static_val, static.File(six.ensure_binary(getPublicPath() + '/' + static_val)))
		for static_val in ('themes', 'webtv', 'vxg'):
			if os.path.exists(getPublicPath(static_val)):
				self.putChild2(static_val, static.File(six.ensure_binary(getPublicPath() + '/' + static_val)))

		if os.path.exists('/usr/bin/shellinaboxd'):
			self.putChild2("terminal", proxy.ReverseProxyResource(b'::1', 4200, b'/'))
		self.putGZChild("ipkg", IpkgController(session))
		self.putChild2("autotimer", ATController(session))
		self.putChild2("epgrefresh", ERController(session))
		self.putChild2("bouqueteditor", BQEController(session))
		self.putChild2("transcoding", TranscodingController())
		self.putChild2("wol", WOLClientController())
		self.putChild2("wolsetup", WOLSetupController(session))
		if PICON_PATH:
			self.putChild2("picon", static.File(six.ensure_binary(PICON_PATH)))
		try:
			from Plugins.Extensions.OpenWebif.controllers.NET import NetController
			self.putChild2("net", NetController(session))
		except:  # noqa: E722
			pass
Exemple #3
0
	def __init__(self, session, path=""):
		BaseController.__init__(self, path=path, session=session)
		self.putChild("web", BQEWebController(session))
		self.putChild("api", BQEApiController(session))
		self.putChild('tmp', static.File('/tmp'))  # nosec
		self.putChild('uploadrestore', BQEUploadFile(session))
		self.putChild('import', BQEImport(session))
 def __init__(self, session, path=""):
     BaseController.__init__(self, path=path, session=session)
     self.putChild(b'upload', IPKGUpload(self.session))
 def __init__(self, session, path=""):
     BaseController.__init__(self, path=path, session=session)
Exemple #6
0
 def __init__(self, session, path=""):
     BaseController.__init__(self,
                             path=path,
                             session=session,
                             isMobile=True)