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
8e7fa6c9
Commit
8e7fa6c9
authored
Feb 05, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support due date and display name
parent
e6770bca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
common/lib/xmodule/xmodule/combined_open_ended_module.py
+9
-1
common/lib/xmodule/xmodule/combined_open_ended_modulev1.py
+1
-0
No files found.
common/lib/xmodule/xmodule/combined_open_ended_module.py
View file @
8e7fa6c9
...
...
@@ -140,7 +140,7 @@ class CombinedOpenEndedModule(XModule):
self
.
child_descriptor
=
descriptors
[
version_index
](
self
.
system
)
self
.
child_definition
=
CombinedOpenEndedV1Descriptor
.
definition_from_xml
(
etree
.
fromstring
(
definition
[
'xml_string'
]),
self
.
system
)
self
.
child_module
=
modules
[
version_index
](
self
.
system
,
location
,
self
.
child_definition
,
self
.
child_descriptor
,
instance_state
=
json
.
dumps
(
instance_state
),
metadata
=
definition
[
'metadata'
]
)
instance_state
=
json
.
dumps
(
instance_state
),
metadata
=
self
.
metadata
)
def
get_html
(
self
):
return
self
.
child_module
.
get_html
()
...
...
@@ -160,6 +160,14 @@ class CombinedOpenEndedModule(XModule):
def
get_progress
(
self
):
return
self
.
child_module
.
get_progress
()
@property
def
due_date
(
self
):
return
self
.
child_module
.
due_date
@property
def
display_name
(
self
):
return
self
.
child_module
.
display_name
class
CombinedOpenEndedDescriptor
(
XmlDescriptor
,
EditingDescriptor
):
"""
...
...
common/lib/xmodule/xmodule/combined_open_ended_modulev1.py
View file @
8e7fa6c9
...
...
@@ -136,6 +136,7 @@ class CombinedOpenEndedV1Module():
"""
self
.
metadata
=
metadata
self
.
display_name
=
metadata
[
'display_name'
]
# Load instance state
if
instance_state
is
not
None
:
...
...
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