示例#1
0
 def _get_cache(self):
     cache = getattr(self._root, '_cache', None)
     if cache is None:
         prefix = '/'.join(self._root.uid.split('/')[:4])
         cache = TreeNode._buildCache(self,
                                      'Products.ZenModel.DeviceClass.DeviceClass',
                                      'Products.ZenModel.RRDTemplate.RRDTemplate',
                                      'rrdTemplates', prefix, orderby='name')
     return cache
示例#2
0
 def _get_cache(self):
     cache = getattr(self._root, '_cache', None)
     if cache is None:
         prefix = '/'.join(self._root.uid.split('/')[:4])
         cache = TreeNode._buildCache(self,
                                      'Products.ZenModel.DeviceClass.DeviceClass',
                                      'Products.ZenModel.RRDTemplate.RRDTemplate',
                                      'rrdTemplates', prefix, orderby='name')
     return cache
示例#3
0
 def _get_cache(self):
     cache = getattr(self._root, '_cache', None)
     if cache is None:
         cache = TreeNode._buildCache(self,
                                      IpNetwork,
                                      IpAddress,
                                      'ipaddresses',
                                      orderby='name')
     return cache
示例#4
0
 def _get_cache(self):
     cache = getattr(self._root, '_cache', None)
     if cache is None:
         cache = TreeNode._buildCache(self, IpNetwork, IpAddress, 'ipaddresses', orderby='name' )
     return cache
示例#5
0
文件: mib.py 项目: c0ns0le/zenoss-4
 def __init__(self, obj):
     TreeNode.__init__(self, obj)
     self._nodes = []
示例#6
0
文件: mib.py 项目: c0ns0le/zenoss-4
 def __init__(self, obj):
     TreeNode.__init__(self, obj)
     self._nodes = []
     self.qtip = "Top Level OID container"
     self.oid = ''
示例#7
0
 def __init__(self, obj):
     TreeNode.__init__(self, obj)
     self._nodes = []
示例#8
0
 def __init__(self, obj):
     TreeNode.__init__(self, obj)
     self._nodes = []
     self.qtip = "Top Level OID container"
     self.oid = ''