1
2
3
4
5
6
7
8
9
10
11
12
13
14 import logging
15 log = logging.getLogger("zen.EventView")
16
17 from Globals import DTMLFile, InitializeClass
18 from AccessControl import ClassSecurityInfo
19 from Acquisition import aq_parent
20 from zope.interface import implements
21
22 from Products.ZenModel.ZenModelRM import ZenModelRM
23 from Products.ZenEvents.EventFilter import EventFilter
24 from Products.ZenModel.EventView import IEventView
25
32
33 addCustomEventView = DTMLFile('dtml/addCustomEventView',globals())
34
35 __pychecker__='no-argsused no-varargsused'
36
38
39 implements(IEventView)
40
41 meta_type = "CustomEventView"
42
43 type = "status"
44 evtypes = ("status", "history")
45 orderby = ""
46 where = ""
47 resultFields = ()
48
49 _properties = ZenModelRM._properties + (
50 {'id':'type', 'type':'selection',
51 'select_variable':'evtypes', 'mode':'w'},
52 {'id':'orderby', 'type':'string', 'mode':'w'},
53 {'id':'where', 'type':'text', 'mode':'w'},
54 {'id':'resultFields', 'type':'lines', 'mode':'w'},
55 )
56
57 security = ClassSecurityInfo()
58
59 InitializeClass(CustomEventView)
60