1
2
3
4
5
6
7
8
9
10
11
12
13
14 __doc__="""HardDisk
15
16 HardDisk is a collection of devices and subsystems that make
17 up a business function
18
19 $Id: HardDisk.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
39
40 addHardDisk = DTMLFile('dtml/addHardDisk',globals())
41
42
44 """HardDisk object"""
45
46 portal_type = meta_type = 'HardDisk'
47
48 manage_editHardDiskForm = DTMLFile('dtml/manageEditHardDisk',globals())
49
50 description = ""
51 hostresindex = 0
52
53 _properties = HWComponent._properties + (
54 {'id':'description', 'type':'string', 'mode':'w'},
55 {'id':'hostresindex', 'type':'int', 'mode':'w'},
56 )
57
58 _relations = HWComponent._relations + (
59 ("hw", ToOne(ToManyCont, "Products.ZenModel.DeviceHW", "harddisks")),
60 )
61
62
63 factory_type_information = (
64 {
65 'id' : 'HardDisk',
66 'meta_type' : 'HardDisk',
67 'description' : """Arbitrary device grouping class""",
68 'icon' : 'HardDisk_icon.gif',
69 'product' : 'ZenModel',
70 'factory' : 'manage_addHardDisk',
71 'immediate_view' : 'viewHardDisk',
72 'actions' :
73 (
74 { 'id' : 'status'
75 , 'name' : 'Status'
76 , 'action' : 'viewHardDisk'
77 , 'permissions' : ('View',)
78 },
79
80
81
82
83
84 { 'id' : 'viewHistory'
85 , 'name' : 'Modifications'
86 , 'action' : 'viewHistory'
87 , 'permissions' : ('View',)
88 },
89 )
90 },
91 )
92
94
95
96 InitializeClass(HardDisk)
97