Updated Development_Contribution (markdown)

master
Chris Caron 2023-09-30 22:10:56 -04:00
parent 2e49cef2bb
commit 7775de037c
1 changed files with 10 additions and 0 deletions

@ -78,6 +78,16 @@ class NotifyFooBar(NotifyBase):
# otherwise return False if it failed.
return True
def __len__(self):
"""
Returns the number of targets associated with this notification
"""
# By default if this isn't defined then one (1) is always returned
# but there are cases where you make accept many notification end points
# to notify. So this function may return something like len(self.targets).
return 1
@staticmethod
def parse_url(url):
"""