Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
4b534788
Commit
4b534788
authored
11 years ago
by
Calen Pennington
Committed by
Don Mitchell
11 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Require markdown to be explicitly set
parent
8b597964
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/djangoapps/contentstore/views/component.py
+2
-3
2 additions, 3 deletions
cms/djangoapps/contentstore/views/component.py
common/lib/xmodule/xmodule/capa_module.py
+1
-1
1 addition, 1 deletion
common/lib/xmodule/xmodule/capa_module.py
with
3 additions
and
4 deletions
cms/djangoapps/contentstore/views/component.py
+
2
−
3
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
:
...
...
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/capa_module.py
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment