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
43917832
Commit
43917832
authored
Jun 05, 2013
by
Chris Dodge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add exporting of 'about' content as well as adding unit test checks
parent
468dfe34
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
cms/djangoapps/contentstore/tests/test_contentstore.py
+3
-0
common/lib/xmodule/xmodule/modulestore/xml_exporter.py
+3
-0
No files found.
cms/djangoapps/contentstore/tests/test_contentstore.py
View file @
43917832
...
...
@@ -486,6 +486,9 @@ class ContentStoreToyCourseTest(ModuleStoreTestCase):
# check for custom_tags
self
.
verify_content_existence
(
module_store
,
root_dir
,
location
,
'custom_tags'
,
'custom_tag_template'
)
# check for about content
self
.
verify_content_existence
(
module_store
,
root_dir
,
location
,
'about'
,
'about'
,
'.html'
)
# check for graiding_policy.json
filesystem
=
OSFS
(
root_dir
/
'test_export/policies/6.002_Spring_2012'
)
self
.
assertTrue
(
filesystem
.
exists
(
'grading_policy.json'
))
...
...
common/lib/xmodule/xmodule/modulestore/xml_exporter.py
View file @
43917832
...
...
@@ -28,6 +28,9 @@ def export_to_xml(modulestore, contentstore, course_location, root_dir, course_d
# export the course updates
export_extra_content
(
export_fs
,
modulestore
,
course_location
,
'course_info'
,
'info'
,
'.html'
)
# export the 'about' data (e.g. overview, etc.)
export_extra_content
(
export_fs
,
modulestore
,
course_location
,
'about'
,
'about'
,
'.html'
)
# export the grading policy
policies_dir
=
export_fs
.
makeopendir
(
'policies'
)
course_run_policy_dir
=
policies_dir
.
makeopendir
(
course
.
location
.
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