def autostart(reason, **kwargs): if reason == 0: # NOTE: we need to be the first one to be notified since other listeners # may remove the notifications from the list for good Notifications.notificationAdded.insert(0, gotNotification) growleeConnection.listen()
def autostart(reason, **kwargs): if reason == 0: if hasattr(Notifications, "notificationQueue"): addedList = Notifications.notificationQueue.addedCB else: addedList = Notifications.notificationAdded # NOTE: we need to be the first one to be notified since other listeners # may remove the notifications from the list for good addedList.insert(0, gotNotification) growleeConnection.listen()
def autostart(reason, **kwargs): if reason == 0: if hasattr(Notifications, 'notificationQueue'): addedList = Notifications.notificationQueue.addedCB else: addedList = Notifications.notificationAdded # NOTE: we need to be the first one to be notified since other listeners # may remove the notifications from the list for good addedList.insert(0, gotNotification) growleeConnection.listen()
def doConnect(*args, **kwargs): growleeConnection.listen()