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
a7568fbf
Commit
a7568fbf
authored
Aug 12, 2013
by
jkarni
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #567 from edx/jkarni/fix/descriptorsystemruntime
Make descriptorsystem inherit from Runtime
parents
6a3f0c14
7fc60577
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
cms/djangoapps/contentstore/views/preview.py
+7
-1
common/lib/xmodule/xmodule/x_module.py
+1
-1
No files found.
cms/djangoapps/contentstore/views/preview.py
View file @
a7568fbf
...
...
@@ -75,9 +75,15 @@ def preview_component(request, location):
component
=
modulestore
()
.
get_item
(
location
)
component
.
get_html
=
wrap_xmodule
(
component
.
get_html
,
component
,
'xmodule_edit.html'
)
return
render_to_response
(
'component.html'
,
{
'preview'
:
get_preview_html
(
request
,
component
,
0
),
'editor'
:
wrap_xmodule
(
component
.
get_html
,
component
,
'xmodule_edit.html'
)()
,
'editor'
:
component
.
runtime
.
render
(
component
,
None
,
'studio_view'
)
.
content
,
})
...
...
common/lib/xmodule/xmodule/x_module.py
View file @
a7568fbf
...
...
@@ -812,7 +812,7 @@ class XModuleDescriptor(XModuleFields, HTMLSnippet, ResourceTemplates, XBlock):
return
Fragment
(
self
.
get_html
())
class
DescriptorSystem
(
object
):
class
DescriptorSystem
(
Runtime
):
def
__init__
(
self
,
load_item
,
resources_fs
,
error_tracker
,
**
kwargs
):
"""
load_item: Takes a Location and returns an XModuleDescriptor
...
...
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