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

# Source Code for Module Products.ZenModel.HardwareClass

     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  __doc__="""HardwareClass
    12
    13  HardwareClass represents a software vendor's product.
    14
    15  $Id: HardwareClass.py,v 1.5 2003/03/08 18:34:24 edahl Exp $"""
    16
    17  __version__ = "$Revision: 1.5 $"[11:-2]
    18
    19  from Globals import DTMLFile
    20  from Globals import InitializeClass
    21
    22  from Products.ZenRelations.RelSchema import *
    23
    24  from ProductClass import ProductClass
    25
    26 -def manage_addHardwareClass(context, id, title = None, REQUEST = None):
    27      """make a HardwareClass"""
    28      d = HardwareClass(id, title)
    29      context._setObject(id, d)
    30
    31      if REQUEST is not None:
    32          REQUEST['RESPONSE'].redirect(context.absolute_url()
    33                                       +'/manage_main')
    34
    35  addHardwareClass = DTMLFile('dtml/addHardwareClass',globals())
    36
    37 -class HardwareClass(ProductClass):
    38      """HardwareClass object"""
    39      portal_type = meta_type = 'HardwareClass'
    40
    41  InitializeClass(HardwareClass)
    42