Skip to content

Commit

Permalink
feat: add Lilac backend (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
luisfelipec95 authored Nov 24, 2023
1 parent bff6c0f commit c196b2d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions eox_hooks/edxapp_wrapper/backends/courses_l_v1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"""
Backend file for Course related objects.
"""


def get_load_single_xblock():
"""
Gets load_single_xblock function from edxapp.
Returns:
[Function]: load_single_xblock function.
"""
from lms.djangoapps.courseware.module_render import load_single_xblock # pylint: disable=C0415, E0401
return load_single_xblock


def get_item_not_found_exception():
"""
Gets ItemNotFoundError exception from edxapp.
Returns:
[Class]: ItemNotFoundError exception.
"""
from xmodule.modulestore.exceptions import ItemNotFoundError # pylint: disable=C0415, E0401
return ItemNotFoundError

0 comments on commit c196b2d

Please sign in to comment.