Package ZenModel :: Module ExpansionCard
[hide private]
[frames] | no frames]

Source Code for Module ZenModel.ExpansionCard

 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 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  __doc__="""ExpansionCard 
15   
16  ExpansionCard is a collection of devices and subsystems that make 
17  up a business function 
18   
19  $Id: ExpansionCard.py,v 1.7 2004/04/06 22:33:24 edahl Exp $""" 
20   
21  __version__ = "$Revision: 1.7 $"[11:-2] 
22   
23  from Globals import DTMLFile 
24  from Globals import InitializeClass 
25   
26  from Products.ZenRelations.RelSchema import * 
27   
28  from HWComponent import HWComponent 
29   
30 -class ExpansionCard(HWComponent):
31 """ExpansionCard object""" 32 33 portal_type = meta_type = 'ExpansionCard' 34 35 slot = "" 36 37 # we don't monitor cards 38 monitor = False 39 40 _properties = HWComponent._properties + ( 41 {'id':'slot', 'type':'int', 'mode':'w'}, 42 ) 43 44 _relations = HWComponent._relations + ( 45 ("hw", ToOne(ToManyCont, "Products.ZenModel.DeviceHW", "cards")), 46 ) 47 48 49 factory_type_information = ( 50 { 51 'id' : 'ExpansionCard', 52 'meta_type' : 'ExpansionCard', 53 'description' : """Arbitrary device grouping class""", 54 'icon' : 'ExpansionCard_icon.gif', 55 'product' : 'ZenModel', 56 'factory' : 'manage_addExpansionCard', 57 'immediate_view' : 'viewExpansionCard', 58 'actions' : 59 ( 60 { 'id' : 'status' 61 , 'name' : 'Status' 62 , 'action' : 'viewExpansionCard' 63 , 'permissions' : ('View',) 64 }, 65 { 'id' : 'viewHistory' 66 , 'name' : 'Modifications' 67 , 'action' : 'viewHistory' 68 , 'permissions' : ('View',) 69 }, 70 ) 71 }, 72 )
73 74 InitializeClass(ExpansionCard) 75