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
07d9106c
Commit
07d9106c
authored
Aug 23, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #769 from edx/peter-fogg/studio-error-descriptor
Allow Studio to display error modules.
parents
d89279f6
2466a5f5
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 @
07d9106c
...
...
@@ -9,8 +9,7 @@ import json
import
sys
from
lxml
import
etree
from
xmodule.x_module
import
XModule
from
xmodule.editing_module
import
JSONEditingDescriptor
from
xmodule.x_module
import
XModule
,
XModuleDescriptor
from
xmodule.errortracker
import
exc_info_to_str
from
xmodule.modulestore
import
Location
from
xblock.core
import
String
,
Scope
...
...
@@ -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_class
=
ErrorModule
def
get_html
(
self
):
return
''
@classmethod
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