This XBlock implements the consumer side of the LTI specification enabling integration of third-party LTI provider tools.
Install the requirements into the python virtual environment of your
edx-platform installation by running the following command from the
root folder:
$ pip install -r requirements.txtYou can enable the LTI Consumer XBlock in Studio through the advanced settings.
- From the main page of a specific course, navigate to
Settings -> Advanced Settingsfrom the top menu. - Check for the
advanced_modulespolicy key, and add"lti_consumer"to the policy value list. - Click the "Save changes" button.
Install to the workbench's virtualenv by running the following command from the xblock-lti-consumer repo root with the workbench's virtualenv activated:
$ make installFrom the xblock-lti-consumer repo root, run the tests with the following command:
$ make testFrom the xblock-lti-consumer repo root, run the quality checks with the following command:
$ make qualityThis XBlock uses Sass for writing style rules. The Sass is compiled and committed to the git repo using:
$ make compile-sassChanges to style rules should be made to the Sass files, compiled to CSS, and committed to the git repository.
setup.py contains a list of package dependencies which are required for this XBlock package. This list is what is used to resolve dependencies when an upstream project is consuming this XBlock package. requirements.txt is used to install the same dependencies when running the tests for this package.
If you want to download translations from Transifex install transifex client and run this command while inside project root directory
$ tx pull -f --mode=reviewed -l en,ar,es_419,fr,he,hi,ko_KR,pt_BR,ru,zh_CNThe LTI Consumer XBlock is available under the Apache Version 2.0 License.