Skip to main content

EoxHooks

Project description

Features

Installation

Open edX devstack

  • Clone this repo in the src folder of your devstack.

  • Open a new Lms/Devstack shell.

  • Install the plugin as follows: pip install -e /path/to/your/src/folder

  • Restart Lms/Studio services.

Usage

Before using eox-hooks, this plugin must be configured using EOX_HOOKS_DEFINITIONS:

{
    "trigger_event": {
        "module": "path_to_module",
        "action": "action_name",
        "fail_silently": True,
    },
}

Where:

  • trigger_event: is the name of the signal sent by the platform. For example: pre_enrollment_trigger.

  • module: path to the module where the action to be executed is defined. For example: eox_hooks.tests.tests_utils.

  • action: name of the action to be executed. For example: custom_action.

  • fail_silently: defines what happens if an exception raises while executing the action. If False, then the exception is raised.

How to Contribute

Contributions are welcome! See our CONTRIBUTING file for more information – it also contains guidelines for how to maintain high code quality, which will make your contribution more likely to be accepted.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eox-hooks-1.0.0.tar.gz (30.6 kB view hashes)

Uploaded Source

Built Distribution

eox_hooks-1.0.0-py3-none-any.whl (37.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page