Commit 2466a5f5 by Peter Fogg

Allow Studio to display error modules.

parent 9dce9d1e
...@@ -9,8 +9,7 @@ import json ...@@ -9,8 +9,7 @@ import json
import sys import sys
from lxml import etree from lxml import etree
from xmodule.x_module import XModule from xmodule.x_module import XModule, XModuleDescriptor
from xmodule.editing_module import JSONEditingDescriptor
from xmodule.errortracker import exc_info_to_str from xmodule.errortracker import exc_info_to_str
from xmodule.modulestore import Location from xmodule.modulestore import Location
from xblock.core import String, Scope from xblock.core import String, Scope
...@@ -70,12 +69,15 @@ class NonStaffErrorModule(ErrorFields, XModule): ...@@ -70,12 +69,15 @@ class NonStaffErrorModule(ErrorFields, XModule):
}) })
class ErrorDescriptor(ErrorFields, JSONEditingDescriptor): class ErrorDescriptor(ErrorFields, XModuleDescriptor):
""" """
Module that provides a raw editing view of broken xml. Module that provides a raw editing view of broken xml.
""" """
module_class = ErrorModule module_class = ErrorModule
def get_html(self):
return ''
@classmethod @classmethod
def _construct(cls, system, contents, error_msg, location): def _construct(cls, system, contents, error_msg, location):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment