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
d9466219
Commit
d9466219
authored
Feb 14, 2012
by
Piotr Mitros
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed course check
parent
6e9c320a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
courseware/management/commands/check_course.py
+2
-1
No files found.
courseware/management/commands/check_course.py
View file @
d9466219
...
...
@@ -8,6 +8,7 @@ from django.contrib.auth.models import User
from
mitx.courseware.content_parser
import
course_file
import
mitx.courseware.module_render
import
mitx.courseware.modules
class
Command
(
BaseCommand
):
help
=
"Does basic validity tests on course.xml."
...
...
@@ -24,7 +25,7 @@ class Command(BaseCommand):
check
=
False
print
"Confirming all modules render. Nothing should print during this step. "
for
module
in
course
.
xpath
(
'//problem|//html|//video|//vertical|//sequential|/tab'
):
module_class
=
mitx
.
courseware
.
module
_render
.
modx_modules
[
module
.
tag
]
module_class
=
mitx
.
courseware
.
module
s
.
modx_modules
[
module
.
tag
]
# TODO: Abstract this out in render_module.py
try
:
instance
=
module_class
(
etree
.
tostring
(
module
),
...
...
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