本文整理汇总了Python中BouquetEditor.BouquetEditor.handleCommand方法的典型用法代码示例。如果您正苦于以下问题:Python BouquetEditor.handleCommand方法的具体用法?Python BouquetEditor.handleCommand怎么用?Python BouquetEditor.handleCommand使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BouquetEditor.BouquetEditor
的用法示例。
在下文中一共展示了BouquetEditor.handleCommand方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: P_addservicetobouquet
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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
# 需要导入模块: from BouquetEditor import BouquetEditor [as 别名]
# 或者: from BouquetEditor.BouquetEditor import handleCommand [as 别名]
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'])