Module NotificationScript
[hide private]
[frames] | no frames]

Source Code for Module NotificationScript

 1  # import useful modules for Scripts 
 2  from AccessEngine import AEScript, AccessEngineAPI 
 3  from AccessEngine import AEConstants 
 4  from AccessEngine.AEPor import AEPor 
 5  from Tools.i18n import bind, _ 
 6   
 7  import logging 
 8  log = logging.getLogger('NotificationScript') 
 9   
10  # metadata describing this Script 
11  __uie__ = dict(kind='script', tier='notification-daemon', all_tiers=False) 
12   
13 -class NotificationScript(AEScript.EventScript):
14 ''' 15 This script should react to changes in the notification-daemon. 16 17 @todo: RB: Right now SUE doesn't always transform the incomming event 18 ('window: create' or maybe 'object:children-changed') into an AEEvent. 19 This is a Bug that needs to be resolved. 20 ''' 21
22 - def init(self):
23 self.registerEventTask('new mail notification', self.onViewChange)
24
25 - def onViewGained(self, **kwargs):
26 pass
27