diff --git a/zds/forum/signals.py b/zds/forum/signals.py index b3b2ccd95d..8530ff2cb0 100644 --- a/zds/forum/signals.py +++ b/zds/forum/signals.py @@ -1,7 +1,16 @@ from django.dispatch import Signal -topic_moved = Signal(providing_args=["topic"]) -topic_edited = Signal(providing_args=["topic"]) -topic_read = Signal(providing_args=["instance", "user"]) -post_read = Signal(providing_args=["instance", "user"]) -post_unread = Signal(providing_args=["post", "user"]) +# argument: topic +topic_moved = Signal() + +# argument: topic +topic_edited = Signal() + +# arguments: instance, user +topic_read = Signal() + +# arguments: instance, user +post_read = Signal() + +# arguments: post, user +post_unread = Signal() diff --git a/zds/notification/signals.py b/zds/notification/signals.py index 597a05cb9f..e7127c3b8a 100644 --- a/zds/notification/signals.py +++ b/zds/notification/signals.py @@ -1,4 +1,5 @@ from django.dispatch import Signal # is sent when a content is read (topic, article or tutorial) -content_read = Signal(providing_args=["instance", "user", "target"]) +# arguments: instance, user, target +content_read = Signal() diff --git a/zds/tutorialv2/signals.py b/zds/tutorialv2/signals.py index 2c05c685bc..dd8decfbf9 100644 --- a/zds/tutorialv2/signals.py +++ b/zds/tutorialv2/signals.py @@ -1,11 +1,14 @@ from django.dispatch.dispatcher import Signal # Display management -content_read = Signal(providing_args=["instance", "user", "target"]) +# arguments: instance, user, target +content_read = Signal() # Publication events -content_published = Signal(providing_args=["instance", "user", "by_email"]) -content_unpublished = Signal(providing_args=["instance", "target", "moderator"]) +# arguments: instance, user, by_email +content_published = Signal() +# arguments: instance, target, moderator +content_unpublished = Signal() # Authors management # For the signal below, the arguments "performer", "content", "author" and "action" shall be provided. diff --git a/zds/utils/signals.py b/zds/utils/signals.py index 15a3bef253..53ecfc7d75 100644 --- a/zds/utils/signals.py +++ b/zds/utils/signals.py @@ -1,4 +1,7 @@ from django.dispatch import Signal -ping = Signal(providing_args=["instance", "user", "by_email"]) -unping = Signal(providing_args=["instance", "user"]) +# arguments: instance, user, by_email +ping = Signal() + +# arguments: instance, user +unping = Signal()