Manages notifications by pubsub. Pubsub notifies this manager once for every type of notification. If the corresponding notification flag is True, all registered notification handlers are called (order undefined) via the flag’s associated method (handler.sendMessage for sendMessage notification, etc).
Note that this manager automatically unregisters all handlers when the Python interpreter exits, to help avoid NoneType exceptions during shutdown. This “shutdown” starts when the last line of you “main” has executed; the Python interpreter then starts cleaning up, garbage collecting everything, which could lead to various pubsub notifications – by then they should be of no interest to you – such as dead listeners, and even other notifications if a notification handler where to call upon pubsub.
copyright: | Copyright 2006-2009 by Oliver Schoenborn, all rights reserved. |
---|---|
license: | BSD, see LICENSE.txt for details. |
INotificationHandler | Defines the interface expected by pubsub for notification |
NotificationMgr |