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 DTMLFile
24 from Globals import InitializeClass
25
26 from Products.ZenRelations.RelSchema import *
27
28 from HWComponent import HWComponent
29
31 """ExpansionCard object"""
32
33 portal_type = meta_type = 'ExpansionCard'
34
35 slot = ""
36
37
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