1
2
3
4
5
6
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
29 """ExpansionCard object"""
30
31 portal_type = meta_type = 'ExpansionCard'
32
33 slot = ""
34
35
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