You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/how-tos/consume-an-event.rst
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,8 @@ An :term:`Event Receiver` is simply a function that listens for a specific event
71
71
- This event has a single field called ``enrollment`` which is an instance of the ``CourseEnrollmentData`` class. You can review the ``CourseEnrollmentData`` class to understand the data that is available to you and how you can use it to implement the custom logic.
72
72
- The ``metadata`` parameter contains the Open edX-specific metadata for the event, such as the event version and timestamp when the event was sent. You can use this metadata to understand more about the event and its context.
73
73
74
+
These event receivers are implemented in `Open edX Django plugins`_ and are registered in the ``signals.py`` file of the plugin. You can review the ``signals.py`` file of the openedx-events-2-zapier_ plugin to understand how the event receivers are implemented and connected to the events.
75
+
74
76
Step 4: Test the Event Receiver
75
77
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
76
78
@@ -117,3 +119,4 @@ This way you can ensure that the event receiver is working as expected and that
0 commit comments