Exemple #1
0
	def P_movebouquet(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #2
0
	def P_addservicetobouquet(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #3
0
	def P_togglelock(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #4
0
	def P_restore(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #5
0
	def P_Removealternativeservices(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #6
0
	def P_renameservice(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #7
0
	def P_addprovidertobouquetlist(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
	def P_backup(self, request):
		self.withMainTemplate = False
		try:
			from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.BouquetEditor import BouquetEditor
			bqe = BouquetEditor(self.session, func=BouquetEditor.BACKUP)
			bqe.handleCommand(self.buildCommand('Filename',request.args))
			return self.returnResult(request, bqe.result)
		except ImportError:
			return self.returnResult(request, [False, 'BouquetEditor plugin not found'])
Exemple #9
0
 def P_addbouquet(self, request):
     self.withMainTemplate = False
     try:
         from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.BouquetEditor import BouquetEditor
         bqe = BouquetEditor(self.session, func=BouquetEditor.ADD_BOUQUET)
         bqe.handleCommand(self.buildCommand('name,mode', request.args))
         return self.returnResult(request, bqe.result)
     except ImportError:
         return self.returnResult(request,
                                  [False, 'BouquetEditor plugin not found'])
Exemple #10
0
 def P_togglelock(self, request):
     self.withMainTemplate = False
     try:
         from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #11
0
 def P_Removealternativeservices(self, request):
     self.withMainTemplate = False
     try:
         from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
Exemple #12
0
 def P_renameservice(self, request):
     self.withMainTemplate = False
     try:
         from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.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'])
 def __init__(self, session, request):
     WebScreen.__init__(self, session, request)
     from Plugins.Extensions.WebBouquetEditor.WebComponents.Sources.BouquetEditor import BouquetEditor
     self["AddBouquet"] = BouquetEditor(session,
                                        func=BouquetEditor.ADD_BOUQUET)
     self["RemoveBouquet"] = BouquetEditor(
         session, func=BouquetEditor.REMOVE_BOUQUET)
     self["MoveBouquet"] = BouquetEditor(session,
                                         func=BouquetEditor.MOVE_BOUQUET)
     self["MoveService"] = BouquetEditor(session,
                                         func=BouquetEditor.MOVE_SERVICE)
     self["RemoveService"] = BouquetEditor(
         session, func=BouquetEditor.REMOVE_SERVICE)
     self["AddServiceToBouquet"] = BouquetEditor(
         session, func=BouquetEditor.ADD_SERVICE_TO_BOUQUET)
     self["AddProviderToBouquetlist"] = BouquetEditor(
         session, func=BouquetEditor.ADD_PROVIDER_TO_BOUQUETLIST)
     self["AddServiceToAlternative"] = BouquetEditor(
         session, func=BouquetEditor.ADD_SERVICE_TO_ALTERNATIVE)
     self["RemoveAlternativeServices"] = BouquetEditor(
         session, func=BouquetEditor.REMOVE_ALTERNATIVE_SERVICES)
     self["ToggleLock"] = BouquetEditor(session,
                                        func=BouquetEditor.TOGGLE_LOCK)
     self["Backup"] = BouquetEditor(session, func=BouquetEditor.BACKUP)
     self["Restore"] = BouquetEditor(session, func=BouquetEditor.RESTORE)
     self["RenameService"] = BouquetEditor(
         session, func=BouquetEditor.RENAME_SERVICE)
     self["AddMarkerToBouquet"] = BouquetEditor(
         session, func=BouquetEditor.ADD_MARKER_TO_BOUQUET)