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
4b534788
Commit
4b534788
authored
Jul 10, 2013
by
Calen Pennington
Committed by
Don Mitchell
Jul 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Require markdown to be explicitly set
parent
8b597964
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
cms/djangoapps/contentstore/views/component.py
+2
-3
common/lib/xmodule/xmodule/capa_module.py
+1
-1
No files found.
cms/djangoapps/contentstore/views/component.py
View file @
4b534788
...
...
@@ -142,11 +142,10 @@ def edit_unit(request, location):
for
category
in
COMPONENT_TYPES
:
component_class
=
XModuleDescriptor
.
load_class
(
category
)
# add the default template
has_markdown
=
hasattr
(
component_class
,
'markdown'
)
and
component_class
.
markdown
is
not
None
component_templates
[
category
]
.
append
((
component_class
.
display_name
.
default
or
'Blank'
,
category
,
has_markdown
,
False
,
# No defaults have markdown (hardcoded current default)
None
# no boilerplate for overrides
))
# add boilerplates
...
...
@@ -175,7 +174,7 @@ def edit_unit(request, location):
component_templates
[
'advanced'
]
.
append
((
component_class
.
display_name
.
default
or
category
,
category
,
hasattr
(
component_class
,
'markdown'
)
and
component_class
.
markdown
is
not
Non
e
,
Fals
e
,
None
# don't override default data
))
except
PluginMissingError
:
...
...
common/lib/xmodule/xmodule/capa_module.py
View file @
4b534788
...
...
@@ -146,7 +146,7 @@ class CapaFields(object):
values
=
{
"min"
:
0
,
"step"
:
.
1
},
scope
=
Scope
.
settings
)
markdown
=
String
(
help
=
"Markdown source of this module"
,
default
=
""
,
scope
=
Scope
.
settings
)
markdown
=
String
(
help
=
"Markdown source of this module"
,
default
=
None
,
scope
=
Scope
.
settings
)
source_code
=
String
(
help
=
"Source code for LaTeX and Word problems. This feature is not well-supported."
,
scope
=
Scope
.
settings
...
...
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