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
51a79017
Commit
51a79017
authored
Jun 29, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only set the default etree parser options in the module that is starting the xml parsing
parent
f8594570
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
cms/djangoapps/contentstore/management/commands/import.py
+0
-4
lms/djangoapps/courseware/views.py
+0
-5
No files found.
cms/djangoapps/contentstore/management/commands/import.py
View file @
51a79017
...
...
@@ -4,14 +4,10 @@
from
django.core.management.base
import
BaseCommand
,
CommandError
from
keystore.django
import
keystore
from
lxml
import
etree
from
keystore.xml
import
XMLModuleStore
unnamed_modules
=
0
etree
.
set_default_parser
(
etree
.
XMLParser
(
dtd_validation
=
False
,
load_dtd
=
False
,
remove_comments
=
True
))
class
Command
(
BaseCommand
):
help
=
\
...
...
lms/djangoapps/courseware/views.py
View file @
51a79017
...
...
@@ -12,8 +12,6 @@ from mitxmako.shortcuts import render_to_response, render_to_string
from
django_future.csrf
import
ensure_csrf_cookie
from
django.views.decorators.cache
import
cache_control
from
lxml
import
etree
from
module_render
import
toc_for_course
,
get_module
,
get_section
from
models
import
StudentModuleCache
from
student.models
import
UserProfile
...
...
@@ -26,9 +24,6 @@ from courseware import grades
log
=
logging
.
getLogger
(
"mitx.courseware"
)
etree
.
set_default_parser
(
etree
.
XMLParser
(
dtd_validation
=
False
,
load_dtd
=
False
,
remove_comments
=
True
))
template_imports
=
{
'urllib'
:
urllib
}
...
...
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