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
Example #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
Example #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
Example #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