Package ZenEvents
[hide private]
[frames] | no frames]

Source Code for Package ZenEvents

 1  ########################################################################### 
 2  # 
 3  # This program is part of Zenoss Core, an open source monitoring platform. 
 4  # Copyright (C) 2007, Zenoss Inc. 
 5  # 
 6  # This program is free software; you can redistribute it and/or modify it 
 7  # under the terms of the GNU General Public License version 2 as published by 
 8  # the Free Software Foundation. 
 9  # 
10  # For complete information please visit: http://www.zenoss.com/oss/ 
11  # 
12  ########################################################################### 
13   
14  """__init__ 
15   
16  Initializer for netcool connector product 
17   
18  $Id: __init__.py,v 1.8 2004/04/22 19:08:47 edahl Exp $""" 
19   
20  __version__ = "$Revision: 1.8 $"[11:-2] 
21   
22  from Products.CMFCore.DirectoryView import registerDirectory 
23   
24  from MySqlEventManager import MySqlEventManager, addMySqlEventManager, \ 
25      manage_addMySqlEventManager 
26  from EventClass import EventClass, addEventClass, \ 
27      manage_addEventClass 
28  from EventClassInst import EventClassInst, addEventClassInst, \ 
29      manage_addEventClassInst 
30  from ActionRule import ActionRule, addActionRule, manage_addActionRule 
31  from CustomEventView import CustomEventView, addCustomEventView, \ 
32      manage_addCustomEventView 
33       
34   
35  registerDirectory('skins', globals()) 
36   
37  zeneventpopulator = None 
38  zeneventmaintenance = None 
39   
40  productNames = ( 
41      "ActionRule", 
42      "ActionRuleWindow", 
43      "EventClass", 
44      "EventClassInst", 
45      "EventCommand", 
46      "EventManagerBase", 
47  )     
48   
49 -def initialize(registrar):
50 registrar.registerClass( 51 MySqlEventManager, 52 constructors = (addMySqlEventManager, manage_addMySqlEventManager,) 53 ) 54 registrar.registerClass( 55 EventClass, 56 permission="Add DMD Objects", 57 icon = 'www/dict_icon.gif', 58 constructors = (addEventClass, manage_addEventClass,) 59 ) 60 registrar.registerClass( 61 EventClassInst, 62 permission="Add DMD Objects", 63 icon = 'www/dict_rec_icon.gif', 64 constructors = (addEventClassInst, manage_addEventClassInst,) 65 ) 66 registrar.registerClass( 67 ActionRule, 68 permission="Add DMD Objects", 69 constructors = (addActionRule, manage_addActionRule,) 70 ) 71 registrar.registerClass( 72 CustomEventView, 73 permission="Add DMD Objects", 74 constructors = (addCustomEventView, manage_addCustomEventView,) 75 )
76