Make sure event_names returns *all* events
This commit is contained in:
parent
875a303762
commit
b1d5990ab3
1 changed files with 4 additions and 1 deletions
|
@ -70,7 +70,10 @@ class NotificationEvent(object):
|
|||
@classmethod
|
||||
def event_names(cls):
|
||||
for subc in cls.__subclasses__():
|
||||
if subc.event_name() is not None:
|
||||
if subc.event_name() is None:
|
||||
for subsubc in subc.__subclasses__():
|
||||
yield subsubc.event_name()
|
||||
else:
|
||||
yield subc.event_name()
|
||||
|
||||
@staticmethod
|
||||
|
|
Reference in a new issue