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
e0513f5f
Commit
e0513f5f
authored
Jul 25, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix course tag name on export of definition
parent
5f84e619
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
common/lib/xmodule/xmodule/xml_module.py
+2
-3
No files found.
common/lib/xmodule/xmodule/xml_module.py
View file @
e0513f5f
...
...
@@ -231,6 +231,8 @@ class XmlDescriptor(XModuleDescriptor):
xml_object
=
self
.
definition_to_xml
(
resource_fs
)
self
.
__class__
.
clean_metadata_from_xml
(
xml_object
)
xml_object
.
tag
=
self
.
category
xml_object
.
set
(
'slug'
,
self
.
name
)
# Put content in a separate file if it's large (has more than 5 descendent tags)
if
len
(
list
(
xml_object
.
iter
()))
>
5
:
...
...
@@ -244,9 +246,6 @@ class XmlDescriptor(XModuleDescriptor):
xml_object
.
set
(
'filename'
,
self
.
name
)
xml_object
.
set
(
'slug'
,
self
.
name
)
xml_object
.
tag
=
self
.
category
for
attr
in
self
.
metadata_attributes
:
attr_map
=
self
.
xml_attribute_map
.
get
(
attr
,
AttrMap
(
attr
))
metadata_key
=
attr_map
.
metadata_key
...
...
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