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

# Source Code for Module Products.ZenModel.NagiosTemplate

     1  ##############################################################################
     2  #
     3  # Copyright (C) Zenoss, Inc. 2007, all rights reserved.
     4  #
     5  # This content is made available according to terms specified in
     6  # License.zenoss under the directory where your Zenoss product is installed.
     7  #
     8  ##############################################################################
     9
    10
    11  from Globals import InitializeClass
    12
    13  from Products.ZenRelations.RelSchema import *
    14
    15  from ZenModelRM import ZenModelRM
    16
    17  import warnings
    18  warnings.warn("NagiosTemplate is deprecated", DeprecationWarning)
    19
    20 -class NagiosTemplate(ZenModelRM):
    21
    22      description = ""
    23
    24      _relations =  (
    25          ("deviceClass", ToOne(ToManyCont, "Products.ZenModel.DeviceClass", "nagiosTemplates")),
    26          ("nagiosCmds", ToManyCont(ToOne, "Products.ZenModel.NagiosCmd", "nagiosTemplate")),
    27      )
    28
    29  InitializeClass(NagiosTemplate)
    30