- Moving xmodule folder to root as we're dissolving sub-projects of common folder in edx-platform
- More info: https://openedx.atlassian.net/browse/BOM-2579
- -e common/lib/xmodule has been removed from the requirements as xmodule has itself become the part of edx-platform and not being installed through requirements
- The test files common/lib/xmodule/test_files/ have been removed as they are not being used anymore
18 lines
334 B
Python
18 lines
334 B
Python
"""
|
|
Utilities related to edXNotes.
|
|
"""
|
|
|
|
|
|
import sys
|
|
|
|
|
|
def edxnotes(cls):
|
|
"""
|
|
Conditional decorator that loads edxnotes only when they exist.
|
|
"""
|
|
if "lms.djangoapps.edxnotes" in sys.modules:
|
|
from lms.djangoapps.edxnotes.decorators import edxnotes as notes
|
|
return notes(cls)
|
|
else:
|
|
return cls
|