当前位置: 首页>>代码示例>>Python>>正文


Python BaseController.__init__方法代码示例

本文整理汇总了Python中base.BaseController.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python BaseController.__init__方法的具体用法?Python BaseController.__init__怎么用?Python BaseController.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在base.BaseController的用法示例。


在下文中一共展示了BaseController.__init__方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
		self.putChild("web", BQEWebController(session))
		self.putChild("api", BQEApiController(session))
		self.putChild('tmp', static.File('/tmp'))
		self.putChild('uploadrestore', BQEUploadFile(session))
开发者ID:Leatherface75,项目名称:enigma2pc,代码行数:9,代码来源:BQE.py

示例2: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
		piconpath = getPiconPath()

		self.putChild("web", WebController(session))
		self.putChild("api", ApiController(session))
		self.putChild("ajax", AjaxController(session))
		self.putChild("file", FileController(session))
		self.putChild("grab", grabScreenshot(session))
		if os.path.exists(getPublicPath('mobile')):
			self.putChild("mobile", MobileController(session))
			self.putChild("m", static.File(getPublicPath() + "/mobile"))
		self.putChild("js", static.File(getPublicPath() + "/js"))
		self.putChild("rc", static.File("/usr/share/enigma2/rc_models"))
		self.putChild("css", static.File(getPublicPath() + "/css"))
		self.putChild("static", static.File(getPublicPath() + "/static"))
		self.putChild("images", static.File(getPublicPath() + "/images"))
		self.putChild("fonts", static.File(getPublicPath() + "/fonts"))
		if os.path.exists(getPublicPath('themes')):
			self.putChild("themes", static.File(getPublicPath() + "/themes"))
		if os.path.exists(getPublicPath('webtv')):
			self.putChild("webtv", static.File(getPublicPath() + "/webtv"))
		if os.path.exists(getPublicPath('vxg')):
			self.putChild("vxg", static.File(getPublicPath() + "/vxg"))
		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(session))
		self.putChild("wol", WOLClientController(session))
		self.putChild("wolsetup", WOLSetupController(session))
		if piconpath:
			self.putChild("picon", static.File(piconpath))
开发者ID:HDMU,项目名称:e2openplugin-OpenWebif,代码行数:37,代码来源:root.py

示例3: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
		piconpath = getPiconPath()

		self.putChild("web", WebController(session))
		self.putChild("api", ApiController(session))
		self.putChild("ajax", AjaxController(session))
		self.putChild("file", FileController(session))
		self.putChild("grab", grabScreenshot(session))
		self.putChild("mobile", MobileController(session))
		self.putChild("js", static.File(getPublicPath() + "/js"))
		self.putChild("fonts", static.File(getPublicPath() + "/fonts"))
		self.putChild("css", static.File(getPublicPath() + "/css"))
		self.putChild("static", static.File(getPublicPath() + "/static"))
		self.putChild("images", static.File(getPublicPath() + "/images"))
		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(session))
		self.putChild("wol", WOLClientController(session))
		self.putChild("wolsetup", WOLSetupController(session))
		if piconpath:
			self.putChild("picon", static.File(piconpath))
开发者ID:MDXDave,项目名称:ModernWebif,代码行数:28,代码来源:root.py

示例4: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path=path, session=session)
		piconpath = getPiconPath()

		self.putChild("web", WebController(session))
		self.putChild("api", ApiController(session))
		self.putChild("ajax", AjaxController(session))
		self.putChild("file", FileController())
		self.putChild("grab", grabScreenshot(session))
		if os.path.exists(getPublicPath('mobile')):
			self.putChild("mobile", MobileController(session))
			self.putChild("m", static.File(getPublicPath() + "/mobile"))
		self.putChild("js", static.File(getPublicPath() + "/js"))
		self.putChild("css", static.File(getPublicPath() + "/css"))
		self.putChild("static", static.File(getPublicPath() + "/static"))
		self.putChild("images", static.File(getPublicPath() + "/images"))
		self.putChild("fonts", static.File(getPublicPath() + "/fonts"))
		if os.path.exists(getPublicPath('themes')):
			self.putChild("themes", static.File(getPublicPath() + "/themes"))
		if os.path.exists(getPublicPath('webtv')):
			self.putChild("webtv", static.File(getPublicPath() + "/webtv"))
		if os.path.exists(getPublicPath('vxg')):
			self.putChild("vxg", static.File(getPublicPath() + "/vxg"))
		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 piconpath:
			self.putChild("picon", static.File(piconpath))
开发者ID:GeirJ,项目名称:e2openplugin-OpenWebif,代码行数:37,代码来源:root.py

示例5: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path=""):
		BaseController.__init__(self, path=path, session=session)

		self.putChild("web", WebController(session))
		self.putGZChild("api", ApiController(session))
		self.putGZChild("ajax", AjaxController(session))
		self.putChild("file", FileController())
		self.putChild("grab", grabScreenshot(session))
		if os.path.exists(getPublicPath('mobile')):
			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
开发者ID:MCelliotG,项目名称:e2openplugin-OpenWebif,代码行数:36,代码来源:root.py

示例6: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
		self.controller = None

		self.putChild("control", WebController(session))
		self.putChild("ajax", AjaxController(session))
		self.putChild("api", ApiController(session))
		self.putChild("js", static.File(getPublicPath() + "/js"))
		self.putChild("css", static.File(getPublicPath() + "/css"))
		self.putChild("images", static.File(getPublicPath() + "/images"))
开发者ID:Pizzaofen,项目名称:enigmalight,代码行数:13,代码来源:root.py

示例7: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
		piconpath = getPiconPath()
		
		self.putChild("web", WebController(session))
		self.putChild("api", ApiController(session))
		self.putChild("ajax", AjaxController(session))
		self.putChild("file", FileController(session))
		self.putChild("grab", grabScreenshot(session))
		self.putChild("mobile", MobileController(session))
		self.putChild("js", static.File(getPublicPath() + "/js"))
		self.putChild("css", static.File(getPublicPath() + "/css"))
		self.putChild("images", static.File(getPublicPath() + "/images"))
		if piconpath:
			self.putChild("picon", static.File(piconpath))
开发者ID:nobody9,项目名称:e2openplugin-OpenWebif,代码行数:18,代码来源:root.py

示例8: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
		self.putChild("stream", StreamController(session))
开发者ID:berkantxx27,项目名称:e2openplugin-OpenWebif,代码行数:6,代码来源:web.py

示例9: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
开发者ID:Pizzaofen,项目名称:enigmalight,代码行数:5,代码来源:ajax.py

示例10: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.session = session
		self.putChild("web", BQEWebController(session))
		self.putChild("api", BQEApiController(session))
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:7,代码来源:BQE.py

示例11: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path=""):
		BaseController.__init__(self, path=path, session=session)
		self.putChild('upload', IPKGUpload(self.session))
开发者ID:E2OpenPlugins,项目名称:e2openplugin-OpenWebif,代码行数:5,代码来源:ipkg.py

示例12: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path=path, session=session, isMobile=True)
开发者ID:GeirJ,项目名称:e2openplugin-OpenWebif,代码行数:4,代码来源:mobile.py

示例13: __init__

# 需要导入模块: from base import BaseController [as 别名]
# 或者: from base.BaseController import __init__ [as 别名]
	def __init__(self, session, path = ""):
		BaseController.__init__(self, path)
		self.isMobile = True
		self.session = session
开发者ID:HDMU,项目名称:e2openplugin-OpenWebif,代码行数:6,代码来源:mobile.py


注:本文中的base.BaseController.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。