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 InitializeClass 
24   
25  from Products.ZenRelations.RelSchema import * 
26   
27  from HWComponent import HWComponent 
28   
29  from Products.ZenModel.ZenossSecurity import * 
30   
31 -class ExpansionCard(HWComponent):
32 """ExpansionCard object""" 33 34 portal_type = meta_type = 'ExpansionCard' 35 36 slot = "" 37 38 # we don't monitor cards 39 monitor = False 40 41 _properties = HWComponent._properties + ( 42 {'id':'slot', 'type':'int', 'mode':'w'}, 43 ) 44 45 _relations = HWComponent._relations + ( 46 ("hw", ToOne(ToManyCont, "Products.ZenModel.DeviceHW", "cards")), 47 ) 48 49 50 factory_type_information = ( 51 { 52 'id' : 'ExpansionCard', 53 'meta_type' : 'ExpansionCard', 54 'description' : """Arbitrary device grouping class""", 55 'icon' : 'ExpansionCard_icon.gif', 56 'product' : 'ZenModel', 57 'factory' : 'manage_addExpansionCard', 58 'immediate_view' : 'viewExpansionCard', 59 'actions' : 60 ( 61 { 'id' : 'status' 62 , 'name' : 'Status' 63 , 'action' : 'viewExpansionCard' 64 , 'permissions' : ('View',) 65 }, 66 { 'id' : 'viewHistory' 67 , 'name' : 'Modifications' 68 , 'action' : 'viewHistory' 69 , 'permissions' : (ZEN_VIEW_MODIFICATIONS,) 70 }, 71 ) 72 }, 73 )
74 75 InitializeClass(ExpansionCard) 76