comparison sat_pubsub/backend.py @ 333:0fcd0ea89c84

fixed getOwners call in _prepareNotify
author Goffi <goffi@goffi.org>
date Sat, 03 Jun 2017 15:31:07 +0200
parents e93a9fd329d9
children a468c187bbb5
comparison
equal deleted inserted replaced
332:31cbd8b9fa7f 333:0fcd0ea89c84
1126 if subscription is None: 1126 if subscription is None:
1127 notifications = yield self.backend.getNotifications(node.nodeDbId, items_data) 1127 notifications = yield self.backend.getNotifications(node.nodeDbId, items_data)
1128 else: 1128 else:
1129 notifications = [(subscription.subscriber, [subscription], items_data)] 1129 notifications = [(subscription.subscriber, [subscription], items_data)]
1130 1130
1131 owners = node.getOwners() 1131 owners = yield node.getOwners()
1132 owner_roster = None 1132 owner_roster = None
1133 1133
1134 # now we check access of subscriber for each item, and keep only allowed ones 1134 # now we check access of subscriber for each item, and keep only allowed ones
1135 1135
1136 #we filter items not allowed for the subscribers 1136 #we filter items not allowed for the subscribers