Revert "refactor: move xmodule folder to root"

This commit is contained in:
Muhammad Umar Khan
2022-06-20 16:03:48 +05:00
committed by GitHub
parent 182eb39ed2
commit d890f06507
487 changed files with 339 additions and 216 deletions

View File

@@ -1,22 +0,0 @@
"""
General utilities
"""
from collections import namedtuple
from opaque_keys.edx.locator import BlockUsageLocator
class BlockKey(namedtuple('BlockKey', 'type id')): # lint-amnesty, pylint: disable=missing-class-docstring
__slots__ = ()
def __new__(cls, type, id): # lint-amnesty, pylint: disable=redefined-builtin
return super().__new__(cls, type, id)
@classmethod
def from_usage_key(cls, usage_key):
return cls(usage_key.block_type, usage_key.block_id)
CourseEnvelope = namedtuple('CourseEnvelope', 'course_key structure')