Package Products :: Package ZenRRD :: Module RRDToolItem |
[hide private]
[frames] | no frames]

# Source Code for Module Products.ZenRRD.RRDToolItem

     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  from AccessControl import ClassSecurityInfo
    16
    17  from Products.ZenModel.ZenModelRM import ZenModelRM
    18
    19
    20 -class RRDToolItem(ZenModelRM):
    21      """base class for RRDTool persistent classes"""
    22
    23
    24      security = ClassSecurityInfo()
    25
    26 -    def getName(self):
    27          """Return the name of this item (take off the type from the id).
    28          """
    29          return self.id
    30
    31
    32  InitializeClass(RRDToolItem)
    33