本文整理汇总了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'])
示例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'])
示例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'])
示例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'])
示例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'])
示例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'])
示例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'])
示例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'])