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

Source Code for Module Products.ZenModel.ExpansionCard

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