Skip to main content

Plugin for NEMO to allow users to complete online training even before they have a NEMO account

Project description

NEMO-online-training

Code style: black PyPI - Python Version PyPI Changelog

Plugin for NEMO to allow users to complete online training even before they have a NEMO account

Installation

python -m install nemo-online-training

in settings.py add to INSTALLED_APPS:

INSTALLED_APPS = [
    '...',
    'NEMO_online_training',
    '...'
]

Usage

Add online trainings in Administration -> Detailed administration -> Online trainings

For each training, you can optionally add an action to be performed when the user completes the training.

The following actions are available:

  • extend the user's access expiration date (if the user is already a NEMO user):
    • in the configuration, you can specify the number of days to extend the access expiration date by using extend_by_days
  • remove the training_required flag from the user
  • send an email
    • in the configuration, you can specify the email subject, message and recipients by using subject (django template syntax allowed), message (django template syntax allowed) and recipients (list of email addresses or user to send to the user)
    • in the subject and message, the following variables are available:
      • training_user: the user who is completing the training
      • training: the training being completed
      • record: the record of the training being completed
      • action: the action being performed (send email action)

Display options:

  • set NEMO_ONLINE_TRAINING_ADMIN_NAME in settings.py to customize the admin section name. Default is "Online training"
  • set NEMO_ONLINE_TRAINING_ADMIN_TRAINING_NAME in settings.py to customize the training model admin name. Default is "Training"
  • set NEMO_ONLINE_TRAINING_ADMIN_TRAINING_USER_NAME in settings.py to customize the training user model admin name. Default is "Training User"
  • set NEMO_ONLINE_TRAINING_ADMIN_TRAINING_RECORD_NAME in settings.py to customize the training record model admin name. Default is "Training Record"

Tests

To run the tests:

python run_tests.py

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

nemo_online_training-0.12.3.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nemo_online_training-0.12.3-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file nemo_online_training-0.12.3.tar.gz.

File metadata

  • Download URL: nemo_online_training-0.12.3.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for nemo_online_training-0.12.3.tar.gz
Algorithm Hash digest
SHA256 66e5e51410ea78ebac510acee6072b8cf86b2352ae114125505c90375169ef70
MD5 576ee081554db721a78b2ce190ad1a0a
BLAKE2b-256 6d3465c8e802fee3ac66492eb153a7d01b79816ee1264172f227ee374458d294

See more details on using hashes here.

File details

Details for the file nemo_online_training-0.12.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nemo_online_training-0.12.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4aec8c6e10f59cad494167ad51c8922f650c2dbda5e40319e4142e2bb2e32858
MD5 d606a7ce743ef28453636f6ea2820eca
BLAKE2b-256 c75066cf75c724c4a6eb0301708eae6f45be081091a229253cd9428638e852ec

See more details on using hashes here.

Supported by

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