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:
1 parent
986873834a
commit
b3d67a7ed9
4 files changed
+10
-7
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user