refactor: delete class XmlDescriptor
It also adds `@XBlock.needs("i18n")` to `XModuleMixin` because this service is
required there.
This commit is contained in:
committed by
Piotr Surowiec
parent
8127d19115
commit
3380f88ab3
@@ -8,14 +8,12 @@ import os
|
||||
|
||||
from lxml import etree
|
||||
from lxml.etree import ElementTree, XMLParser
|
||||
from xblock.core import XBlock, XML_NAMESPACES
|
||||
from xblock.core import XML_NAMESPACES
|
||||
from xblock.fields import Dict, Scope, ScopeIds
|
||||
from xblock.runtime import KvsFieldData
|
||||
from xmodule.modulestore import EdxJSONEncoder
|
||||
from xmodule.modulestore.inheritance import InheritanceKeyValueStore, own_metadata
|
||||
|
||||
from .x_module import XModuleMixin
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# assume all XML files are persisted as utf-8.
|
||||
@@ -505,8 +503,3 @@ class XmlMixin:
|
||||
non_editable_fields = super().non_editable_metadata_fields
|
||||
non_editable_fields.append(XmlMixin.xml_attributes)
|
||||
return non_editable_fields
|
||||
|
||||
|
||||
@XBlock.needs("i18n")
|
||||
class XmlDescriptor(XmlMixin, XModuleMixin): # lint-amnesty, pylint: disable=abstract-method
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user