1 '''
2 Inventory Hardware Module
3 '''
4
5 import web
6
7
9 '''
10 '''
12 self.urls = ('/action/searchbyhardware',
13 'searchbyhardwareview.SearchByHardwareView',
14 '/action/createhardwareprofile',
15 'createhardwareprofileview.CreateHardwareProfileView',
16 '/action/updatehardwareprofile',
17 'updatehardwareprofileview.UpdateHardwareProfileView',
18 '/action/deletehardwareprofile',
19 'deletehardwareprofileview.DeleteHardwareProfileView')
20
23
26
29
32
35
38
40
41 if computer.hardware:
42 return [action["updatehardwareprofile"],
43 action["deletehardwareprofile"]]
44 else:
45 return [action["createhardwareprofile"]]
46