本文整理汇总了Python中WMCore.RequestManager.RequestDB.Interface.Request.ChangeState.getMessages方法的典型用法代码示例。如果您正苦于以下问题:Python ChangeState.getMessages方法的具体用法?Python ChangeState.getMessages怎么用?Python ChangeState.getMessages使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类WMCore.RequestManager.RequestDB.Interface.Request.ChangeState
的用法示例。
在下文中一共展示了ChangeState.getMessages方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getRequestDetails
# 需要导入模块: from WMCore.RequestManager.RequestDB.Interface.Request import ChangeState [as 别名]
# 或者: from WMCore.RequestManager.RequestDB.Interface.Request.ChangeState import getMessages [as 别名]
def getRequestDetails(requestName):
""" Return a dict with the intimate details of the request """
requestId = requestID(requestName)
request = getRequest(requestId)
request['Assignments'] = getAssignmentsByName(requestName)
request['RequestMessages'] = ChangeState.getMessages(requestName)
request['RequestUpdates'] = ChangeState.getProgress(requestName)
return request
示例2: getMessage
# 需要导入模块: from WMCore.RequestManager.RequestDB.Interface.Request import ChangeState [as 别名]
# 或者: from WMCore.RequestManager.RequestDB.Interface.Request.ChangeState import getMessages [as 别名]
def getMessage(self, request):
""" Returns a list of messages attached to this request """
return ChangeState.getMessages(request)