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
d60b4eed
Commit
d60b4eed
authored
May 05, 2015
by
Shrhawk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7871 from edx/shr/bug/TNL-2094-6.00.x-export-issue
update the attrib using dict-->update() function
parents
31a19c0f
1175047d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletions
+18
-1
cms/djangoapps/contentstore/views/tests/test_import_export.py
+17
-0
common/lib/xmodule/xmodule/xml_module.py
+1
-1
No files found.
cms/djangoapps/contentstore/views/tests/test_import_export.py
View file @
d60b4eed
...
...
@@ -427,3 +427,20 @@ class ExportTestCase(CourseTestCase):
self
.
assertEqual
(
video_xml
.
get
(
'youtube_id_1_0'
),
youtube_id
)
finally
:
shutil
.
rmtree
(
root_dir
/
name
)
def
test_export_success_with_custom_tag
(
self
):
"""
Verify that course export with customtag
"""
xml_string
=
'<impl>slides</impl>'
vertical
=
ItemFactory
.
create
(
parent_location
=
self
.
course
.
location
,
category
=
'vertical'
,
display_name
=
'foo'
)
ItemFactory
.
create
(
parent_location
=
vertical
.
location
,
category
=
'customtag'
,
display_name
=
'custom_tag_foo'
,
data
=
xml_string
)
self
.
test_export_targz_urlparam
()
common/lib/xmodule/xmodule/xml_module.py
View file @
d60b4eed
...
...
@@ -446,7 +446,7 @@ class XmlParserMixin(object):
node
.
tag
=
xml_object
.
tag
node
.
text
=
xml_object
.
text
node
.
tail
=
xml_object
.
tail
node
.
attrib
=
xml_object
.
attrib
node
.
attrib
.
update
(
xml_object
.
attrib
)
node
.
extend
(
xml_object
)
node
.
set
(
'url_name'
,
self
.
url_name
)
...
...
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