Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2466a5f5
Commit
2466a5f5
authored
Aug 21, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow Studio to display error modules.
parent
9dce9d1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
common/lib/xmodule/xmodule/error_module.py
+5
-3
No files found.
common/lib/xmodule/xmodule/error_module.py
View file @
2466a5f5
...
@@ -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
,
JSONEditing
Descriptor
):
class
ErrorDescriptor
(
ErrorFields
,
XModule
Descriptor
):
"""
"""
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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment