-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bff6c0f
commit c196b2d
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |