1
2
3
4
5
6
7
8
9
10
11
12
13
14 from ZEvent import ZEvent
15 from Products.ZenModel.ZenModelItem import ZenModelItem
16 from Acquisition import Implicit
17
18 from AccessControl import Permissions as permissions
19 from Globals import InitializeClass
20 from AccessControl import ClassSecurityInfo
21
23 security = ClassSecurityInfo()
24 security.setDefaultAccess("allow")
25
26 factory_type_information = (
27 {
28 'id' : 'EventDetail',
29 'meta_type' : 'EventDetail',
30 'description' : """Detail view of netcool event""",
31 'icon' : 'EventDetail_icon.gif',
32 'product' : 'ZenEvents',
33 'factory' : '',
34 'immediate_view' : 'viewEventFields',
35 'actions' :
36 (
37 { 'id' : 'fields'
38 , 'name' : 'Fields'
39 , 'action' : 'viewEventFields'
40 , 'permissions' : (
41 permissions.view, )
42 },
43 { 'id' : 'details'
44 , 'name' : 'Details'
45 , 'action' : 'viewEventDetail'
46 , 'permissions' : (
47 permissions.view, )
48 },
49 { 'id' : 'log'
50 , 'name' : 'Log'
51 , 'action' : 'viewEventLog'
52 , 'permissions' : (
53 permissions.view, )
54 },
55 )
56 },
57 )
58
63
65 """return array of detail tuples (field,value)"""
66 return self._details
67
68
70 """return an array of log tuples (user,date,text)"""
71 return self._logs
72
73
74 InitializeClass(EventDetail)
75
82 InitializeClass(EventData)
83
84
92 InitializeClass(EventLog)
93