Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

Acclaim Badges for EDX

Project Description

Issue badges from Acclaim upon edx course completion.

Acclaim Badges for EDX

Overview

Adds a djangoapp to edx which provides a UI and API backend into Acclaim. Once installed, EDX adminstrators will be able to add Acclaim auth tokens and select badges to be issued upon course completion. This app then listens for course complete events, and issues badges if the student obtains a passing score.

Install

  1. Add “acclaim_badges” to your INSTALLED_APPS setting for EDX lms like this:

    INSTALLED_APPS = [
        ...
        'acclaim_badges',
    ]
    

Note: this file is usually located at /edx-platform/lms/envs/common.py

  1. Include the acclaim_badges URLconf in your project urls.py like this:

    urlpatterns += (
        url(r'^acclaim/', include('acclaim_badges.urls')),
    )
    
  2. The authorization token field is encypted. create a AES-256 keyset using keyzar:

    $ mkdir fieldkeys
    $ keyczart create --location=fieldkeys --purpose=crypt
    $ keyczart addkey --location=fieldkeys --status=primary --size=256
    
  3. Add keyset location to /edx-platform/lms/envs/common.py:

    ENCRYPTED_FIELDS_KEYDIR = '/path/to/fieldkeys'
    
  4. Run ./manage.py lms syncdb --settings aws to create the acclaim_badges lms app.

Usage

The following useful URLs are made available after installation: /acclaim/tokens/ /acclaim/badge-courses/

  1. Add Acclaim organization and authorization token using /acclaim/tokens/
  2. Define a mapping between badge and course by accessing /acclaim/badge-courses/

Note: when defining a mapping, the dropdown will populate with badge templates if the Acclaim API call is successful (valid token and orgainzation combination are used).

Documentation

The full documentation is at https://acclaim-badges.readthedocs.org.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

Even though they were written with edx-platform in mind, the guidelines should be followed for Open edX code in general.

PR description template should be automatically applied if you are sending PR from github interface; otherwise you can find it it at PULL_REQUEST_TEMPLATE.md

Issue report template should be automatically applied if you are sending it from github UI as well; otherwise you can find it at ISSUE_TEMPLATE.md

Reporting Security Issues

Please do not report security issues in public. Please email security@edx.org.

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to this list of resources if you need any assistance.

Change Log

Unreleased

[0.1.0] - 2017-05-10

Added

  • First release on PyPI.
Release History

Release History

This version
History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
acclaim_badges-0.1.0-py2.7.egg (41.6 kB) Copy SHA256 Checksum SHA256 2.7 Egg Jun 6, 2017
acclaim_badges-0.1.0-py2.py3-none-any.whl (37.2 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jun 6, 2017
acclaim-badges-0.1.0.tar.gz (31.8 kB) Copy SHA256 Checksum SHA256 Source Jun 6, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting