Mercurial > libervia-pubsub
comparison sat_pubsub/backend.py @ 258:e5b83fbb0219
removed notifications when no items are allowed for an entity
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 28 Apr 2013 19:29:58 +0200 |
parents | 30988781f30d |
children | 6fe7da6b4b32 |
comparison
equal
deleted
inserted
replaced
257:30988781f30d | 258:e5b83fbb0219 |
---|---|
758 allowed_items.append(item) | 758 allowed_items.append(item) |
759 | 759 |
760 else: #unknown access_model | 760 else: #unknown access_model |
761 raise NotImplementedError | 761 raise NotImplementedError |
762 | 762 |
763 notifications_filtered.append((subscriber, subscriptions, allowed_items)) | 763 if allowed_items: |
764 notifications_filtered.append((subscriber, subscriptions, allowed_items)) | |
764 | 765 |
765 #we notify the owner | 766 #we notify the owner |
766 #FIXME: check if this comply with XEP-0060 (option needed ?) | 767 #FIXME: check if this comply with XEP-0060 (option needed ?) |
767 #TODO: item's access model have to be sent back to owner | 768 #TODO: item's access model have to be sent back to owner |
768 #TODO: same thing for getItems | 769 #TODO: same thing for getItems |