
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
An XBlock which allows embedding of Google documents and calendar within an edX course
This XBlock allows embedding of Google documents and calendar, within an edX course.
Install the requirements into the python virtual environment of your
edx-platform
installation by running the following command from the
root folder:
.. code:: bash
$ make requirements
You can enable the Google Drive & Calendar XBlock in studio through the advanced settings.
Settings -> Advanced Settings
from the top menu.advanced_modules
policy key, and add
"google-document"
and "google-calendar"
to the policy value
list.Install to the workbench's virtualenv by running the following command form the google-drive repo root:
.. code:: bash
pip install -r requirements/base.in
pip install -e .
.. code:: bash
$ ./manage.py runserver 8000
Access it at http://localhost:8000/ <http://localhost:8000>
__.
From google-drive directory, run the tests with the following command:
.. code:: bash
$ pytest
If you want to run only the integration or the unit tests, append the directory to the command. You can also run separate modules in this manner.
.. code:: bash
$ pytest tests/unit
To see the coverage report in HTML format, run the tests using the following command:
.. code:: bash
$ make coverage
If you have not installed the xblock-sdk in the active virtualenv, you
might also have to prepend PYTHONPATH=".:/path/to/xblock"
to the
command above. (/path/to/xblock
is the path to the xblock-sdk, where
the workbench resides).
.. _Internationalization Support: http://edx.readthedocs.io/projects/xblock-tutorial/en/latest/edx_platform/edx_lms.html#internationalization-support .. _Open edX XBlock Tutorial: https://xblock-tutorial.readthedocs.io/en/latest/ .. _Transifex authentication file: https://openedx.atlassian.net/wiki/display/OpenOPS/Running+Fullstack
Each time a character is added to or removed from Google Calendar ID, validation takes place. Analogically, validation takes place for embedded code of Google Drive File.
Google calendar IDs are being validated against a regular expression. IDs must contain at least one '@' character, with at least one character on each side of it, ie. 'a@a'.
Embedded code of Google Drive file is being validated on the server side, by checking the status code of the HTTP response. Since error status codes start with 400, it's assumed that each status code that's larger than or equal to 400 states that file is invalid. If for any reason exception occurs while getting an HTTP response, error code is returned, thus overriding default signalization that is invoked by edx platform when the 500 status code is reported.
For users with a visual impairment:
For analytics purposes, each time an image or iframe containing a calendar or Google Drive file is loaded, an event will be triggered.
There are two types of events:
The Google Drive & Calendar XBlocks are available under the GNU Affero General Public License (AGPLv3).
.. |Build Status| image:: https://travis-ci.org/edx-solutions/xblock-google-drive.svg?branch=master :target: https://travis-ci.org/edx-solutions/xblock-google-drive
FAQs
An XBlock which allows embedding of Google documents and calendar within an edX course
We found that xblock-google-drive demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.