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

# Source Code for Module Products.ZenModel.NagiosTemplate

     1  ###########################################################################
     2  #
     3  # This program is part of Zenoss Core, an open source monitoring platform.
     4  # Copyright (C) 2007, Zenoss Inc.
     5  #
     6  # This program is free software; you can redistribute it and/or modify it
     7  # under the terms of the GNU General Public License version 2 or (at your
     8  # option) any later version as published by the Free Software Foundation.
     9  #
    10  # For complete information please visit: http://www.zenoss.com/oss/
    11  #
    12  ###########################################################################
    13
    14  from Globals import InitializeClass
    15
    16  from Products.ZenRelations.RelSchema import *
    17
    18  from ZenModelRM import ZenModelRM
    19
    20  import warnings
    21  warnings.warn("NagiosTemplate is deprecated", DeprecationWarning)
    22
    23 -class NagiosTemplate(ZenModelRM):
    24
    25      description = ""
    26
    27      _relations =  (
    28          ("deviceClass", ToOne(ToManyCont, "Products.ZenModel.DeviceClass", "nagiosTemplates")),
    29          ("nagiosCmds", ToManyCont(ToOne, "Products.ZenModel.NagiosCmd", "nagiosTemplate")),
    30      )
    31
    32  InitializeClass(NagiosTemplate)
    33