Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_app.py @ 2135:4e67d6ffea66
quick app: check type in notify
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 05 Feb 2017 14:55:21 +0100 |
parents | aa94f33fd2ad |
children | be96beb7ca14 |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Sun Feb 05 14:55:21 2017 +0100 +++ b/frontends/src/quick_frontend/quick_app.py Sun Feb 05 14:55:21 2017 +0100 @@ -636,6 +636,7 @@ @param cb_args(list, None): list of args for callback @param widget(object, None): widget where the notification happened """ + assert type_ in C.NOTIFY_ALL notif_dict = self.profiles[profile].notifications key = '' if entity is None else entity.bare type_notifs = notif_dict.setdefault(key, {}).setdefault(type_, [])