本文整理汇总了Python中Products.ZenModel.ZenModelRM.ZenModelRM.urlLink方法的典型用法代码示例。如果您正苦于以下问题:Python ZenModelRM.urlLink方法的具体用法?Python ZenModelRM.urlLink怎么用?Python ZenModelRM.urlLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Products.ZenModel.ZenModelRM.ZenModelRM
的用法示例。
在下文中一共展示了ZenModelRM.urlLink方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: managedDeviceLink
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def managedDeviceLink(self):
from Products.ZenModel.ZenModelRM import ZenModelRM
d = self.getDmdRoot("Devices").findDevice(self.bsProductName)
if d:
return ZenModelRM.urlLink(d, "link")
return None
示例2: managedDeviceLink
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def managedDeviceLink(self):
from Products.ZenModel.ZenModelRM import ZenModelRM
d = self.getDmdRoot('Devices').findDevice(self.id)
if d:
return ZenModelRM.urlLink(d, 'link')
return None
示例3: managedDeviceLink
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def managedDeviceLink(self):
from Products.ZenModel.ZenModelRM import ZenModelRM
d = self.getDmdRoot("Devices").findDevice(self.rttMonCtrlAdminTag)
if d:
return ZenModelRM.urlLink(d, 'link')
return None
示例4: getPerformanceLink
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def getPerformanceLink(self):
from Products.ZenModel.ZenModelRM import ZenModelRM
d = self.getDmdRoot("Devices").findDevice(self.serialPortLabel)
if d:
return ZenModelRM.urlLink(d, 'link')
return None
示例5: managedDeviceLink
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def managedDeviceLink(self):
from Products.ZenModel.ZenModelRM import ZenModelRM
d = self.getDmdRoot("Devices").findDevice(self.serverAlias)
if d:
return ZenModelRM.urlLink(d, 'link')
return None
示例6: managedDeviceLink
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def managedDeviceLink(self):
from Products.ZenModel.ZenModelRM import ZenModelRM
d = self.getDmdRoot("Devices").findDevice(self.bsDisplayName)
if d:
return ZenModelRM.urlLink(d, 'link', attrs={'target':'_top'})
return None
示例7: feedLinks
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def feedLinks(self):
links = []
for feed in self.getFeedObjs():
links.append(ZenModelRM.urlLink(feed, feed.getId()))
return ", ".join(links)
示例8: managedDeviceLink
# 需要导入模块: from Products.ZenModel.ZenModelRM import ZenModelRM [as 别名]
# 或者: from Products.ZenModel.ZenModelRM.ZenModelRM import urlLink [as 别名]
def managedDeviceLink(self):
from Products.ZenModel.ZenModelRM import ZenModelRM
d = self.getDmdRoot("Devices").findDevice(self.cfcDisplayName)
if d:
return ZenModelRM.urlLink(d, self.cfcDisplayName)
return self.cfcDisplayName