Package Products :: Package ZenModel :: Module TemplateContainer |
[hide private]
[frames] | no frames]

# Source Code for Module Products.ZenModel.TemplateContainer

     1
     2  ##############################################################################
     3  #
     4  # Copyright (C) Zenoss, Inc. 2008, all rights reserved.
     5  #
     6  # This content is made available according to terms specified in
     7  # License.zenoss under the directory where your Zenoss product is installed.
     8  #
     9  ##############################################################################
    10
    11
    12  from Products.ZenRelations.RelSchema import *
    13
    14 -class TemplateContainer(object):
    15      """
    16      This mixin is so that different classes can sit on the other
    17      end of the RRDTemplate.deviceClass method.
    18      """
    19
    20      meta_type = 'TemplateContainer'
    21
    22      _relations = (
    23          # deviceClass is named as such for sad, historical reasons.
    24          # Currently the subclasses of TemplateContainer are either
    25          # a DeviceClass or a MonitorClass.
    26          ('rrdTemplates',
    27              ToManyCont(ToOne, 'Products.ZenModel.RRDTemplate', 'deviceClass')),
    28      )
    29