Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
4341ea76
Commit
4341ea76
authored
12 years ago
by
ichuang
Browse files
Options
Downloads
Patches
Plain Diff
fix bug in modulestore reload: etree parser must be specified explicitly
parent
9e8ec09b
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/lib/xmodule/xmodule/xml_module.py
+4
-1
4 additions, 1 deletion
common/lib/xmodule/xmodule/xml_module.py
with
4 additions
and
1 deletion
common/lib/xmodule/xmodule/xml_module.py
+
4
−
1
View file @
4341ea76
...
...
@@ -12,6 +12,9 @@ import sys
log
=
logging
.
getLogger
(
__name__
)
edx_xml_parser
=
etree
.
XMLParser
(
dtd_validation
=
False
,
load_dtd
=
False
,
remove_comments
=
True
,
remove_blank_text
=
True
)
def
name_to_pathname
(
name
):
"""
Convert a location name for use in a path: replace
'
:
'
with
'
/
'
.
...
...
@@ -146,7 +149,7 @@ class XmlDescriptor(XModuleDescriptor):
Returns an lxml Element
"""
return
etree
.
parse
(
file_object
).
getroot
()
return
etree
.
parse
(
file_object
,
parser
=
edx_xml_parser
).
getroot
()
@classmethod
def
load_file
(
cls
,
filepath
,
fs
,
location
):
...
...
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