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


Python BouquetEditor.BouquetEditor类代码示例

本文整理汇总了Python中BouquetEditor.BouquetEditor的典型用法代码示例。如果您正苦于以下问题:Python BouquetEditor类的具体用法?Python BouquetEditor怎么用?Python BouquetEditor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: P_addservicetobouquet

	def P_addservicetobouquet(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.ADD_SERVICE_TO_BOUQUET)
			bqe.handleCommand(self.buildCommand('sBouquetRef,sRef,sRefBefore',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py

示例2: P_restore

	def P_restore(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.RESTORE)
			bqe.handleCommand(request.args['Filename'][0])
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py

示例3: P_movebouquet

	def P_movebouquet(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.MOVE_BOUQUET)
			bqe.handleCommand(self.buildCommand('sBouquetRef,mode,position',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py

示例4: P_togglelock

	def P_togglelock(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.TOGGLE_LOCK)
			bqe.handleCommand(self.buildCommand('sRef,password',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py

示例5: P_Removealternativeservices

	def P_Removealternativeservices(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.REMOVE_ALTERNATIVE_SERVICES)
			bqe.handleCommand(self.buildCommand('sBouquetRef,sRef',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py

示例6: P_renameservice

	def P_renameservice(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.RENAME_SERVICE)
			bqe.handleCommand(self.buildCommand('sBouquetRef,sRef,sRefBefore,newName,mode',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py

示例7: P_addservicetoalternative

	def P_addservicetoalternative(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.ADD_SERVICE_TO_ALTERNATIVE)
			bqe.handleCommand(self.buildCommand('sBouquetRef,sCurrentRef,sRef,mode',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py

示例8: P_addprovidertobouquetlist

	def P_addprovidertobouquetlist(self, request):
		self.withMainTemplate = False
		try:
			from BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.ADD_PROVIDER_TO_BOUQUETLIST)
			bqe.handleCommand(self.buildCommand('sProviderRef,mode',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
开发者ID:MOA-2011,项目名称:enigma2-plugin-extensions-openwebif,代码行数:9,代码来源:BQE.py


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