Change notify target property to be a dictionary (#3501)

* Change notify target property to be a dictionary

* Make demo target properties unique and fix test to match behavior
This commit is contained in:
Robbie Trencheny authored and Paulus Schoutsen committed 2016-09-25 09:41:11 -07:00
1 parent 986873834a
commit b3d67a7ed9
4 files changed
+10 -7

No files matched your search

+4 -1
View File
@@ -314,7 +314,10 @@ class HTML5NotificationService(BaseNotificationService):
@property
def targets(self):
"""Return a dictionary of registered targets."""
return self.registrations.keys()
targets = {}
for registration in self.registrations:
targets[registration] = registration
return targets
# pylint: disable=too-many-locals
def send_message(self, message="", **kwargs):