1
2
3
4
5
6
7
8
9
10
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
32 """ExpansionCard object"""
33
34 portal_type = meta_type = 'ExpansionCard'
35
36 slot = ""
37
38
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