'A generator of current notifications.'

def ShowNotifications(self, reset=True):

    shown_notifications = self.Schema.SHOWN_NOTIFICATIONS()
    pending = self.Get(self.Schema.PENDING_NOTIFICATIONS, [])
    for notification in pending:
        shown_notifications.Append(notification)
    notifications = self.Get(self.Schema.SHOWN_NOTIFICATIONS, [])
    for notification in notifications:
        shown_notifications.Append(notification)
    if reset:
        self.Set(shown_notifications)
        self.Set(self.Schema.PENDING_NOTIFICATIONS())
        self.Flush()
    return shown_notifications
