Trees | Indices | Help |
|
---|
|
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 from twisted.spread import pb 14 15 import logging 16 hubLog = logging.getLogger("zenhub") 17 1820 21 log = hubLog 224624 self.dmd = dmd 25 self.zem = dmd.ZenEventManager 26 self.instance = instance 27 self.listeners = []28 31 3436 remote.notifyOnDisconnect(self.removeListener) 37 self.log.info("adding listener") 38 self.listeners.append(remote)3941 self.log.warning("removing listener") 42 try: 43 self.listeners.remove(listener) 44 except ValueError: 45 self.warning("Unable to remove listener... ignoring")
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu Oct 25 16:28:40 2007 | http://epydoc.sourceforge.net |