Make XmlModuleStore handle asides
PLAT-221
This commit is contained in:
1
common/test/data/aside/README.md
Normal file
1
common/test/data/aside/README.md
Normal file
@@ -0,0 +1 @@
|
||||
This is a very very simple course, useful for initial debugging of processing code.
|
||||
1
common/test/data/aside/course.xml
Normal file
1
common/test/data/aside/course.xml
Normal file
@@ -0,0 +1 @@
|
||||
<course org="edX" course="aside_test" url_name="2012_Fall"/>
|
||||
13
common/test/data/aside/course/2012_Fall.xml
Normal file
13
common/test/data/aside/course/2012_Fall.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<course course_image="just_a_test.jpg">
|
||||
<test_aside xblock-family='xblock_asides.v1' data_field='course aside data'>Course Aside</test_aside>
|
||||
<textbook title="Textbook" book_url="https://s3.amazonaws.com/edx-textbooks/guttag_computation_v3/"/>
|
||||
<chapter url_name="Overview">
|
||||
<test_aside xblock-family='xblock_asides.v1' data_field='chapter aside data'>Chapter Aside</test_aside>
|
||||
<sequential url_name="Toy_Videos">
|
||||
<test_aside xblock-family='xblock_asides.v1' data_field='sequential aside data'>Sequential Aside</test_aside>
|
||||
<html url_name="toyhtml">
|
||||
<test_aside xblock-family='xblock_asides.v1' data_field='html aside data'>Html Aside</test_aside>
|
||||
</html>
|
||||
</sequential>
|
||||
</chapter>
|
||||
</course>
|
||||
1
common/test/data/aside/html/toyhtml.html
Normal file
1
common/test/data/aside/html/toyhtml.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href='/static/handouts/sample_handout.txt'>Sample</a>
|
||||
1
common/test/data/aside/html/toyhtml.xml
Normal file
1
common/test/data/aside/html/toyhtml.xml
Normal file
@@ -0,0 +1 @@
|
||||
<html filename="toyhtml.html"/>
|
||||
1
common/test/data/aside/info/handouts.html
Normal file
1
common/test/data/aside/info/handouts.html
Normal file
@@ -0,0 +1 @@
|
||||
<a href='/static/handouts/sample_handout.txt'>Sample</a>
|
||||
23
common/test/data/aside/policies/2012_Fall.json
Normal file
23
common/test/data/aside/policies/2012_Fall.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"course/2012_Fall": {
|
||||
"graceperiod": "2 days 5 hours 59 minutes 59 seconds",
|
||||
"start": "2015-07-17T12:00",
|
||||
"display_name": "Toy Course",
|
||||
"graded": "true",
|
||||
},
|
||||
"tabs": [
|
||||
{"type": "courseware"},
|
||||
{"type": "course_info", "name": "Course Info"},
|
||||
{"type": "static_tab", "url_slug": "syllabus", "name": "Syllabus"},
|
||||
{"type": "static_tab", "url_slug": "resources", "name": "Resources"},
|
||||
{"type": "discussion", "name": "Discussion"},
|
||||
{"type": "wiki", "name": "Wiki"},
|
||||
{"type": "progress", "name": "Progress"}
|
||||
],
|
||||
"chapter/Overview": {
|
||||
"display_name": "Overview"
|
||||
},
|
||||
"html/secret:toylab": {
|
||||
"display_name": "Toy lab"
|
||||
},
|
||||
}
|
||||
10
common/test/data/aside/policies/assets.json
Normal file
10
common/test/data/aside/policies/assets.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"textbook.pdf":{
|
||||
"contentType":"text/pdf",
|
||||
"displayname":"textbook.pdf",
|
||||
"locked":false,
|
||||
"filename":"/c4x/edx/toy/asset/textbook.pdf",
|
||||
"import_path":null,
|
||||
"thumbnail_location":null
|
||||
}
|
||||
}
|
||||
17
common/test/data/aside/static/another_static.txt
Normal file
17
common/test/data/aside/static/another_static.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
_
|
||||
| |
|
||||
_____ ____ _ _ __ ___ _ __ | | ___
|
||||
/ _ \ \/ / _` | '_ ` _ \| '_ \| |/ _ \
|
||||
| __/> < (_| | | | | | | |_) | | __/
|
||||
\___/_/\_\__,_|_| |_| |_| .__/|_|\___|
|
||||
| |
|
||||
|_|
|
||||
_ _ _
|
||||
| | | | (_)
|
||||
___| |_ __ _| |_ _ ___
|
||||
/ __| __/ _` | __| |/ __|
|
||||
\__ \ || (_| | |_| | (__
|
||||
|___/\__\__,_|\__|_|\___|
|
||||
|
||||
|
||||
BIN
common/test/data/aside/static/just_a_test.jpg
Normal file
BIN
common/test/data/aside/static/just_a_test.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 547 B |
0
common/test/data/aside/static/sample_static.txt
Normal file
0
common/test/data/aside/static/sample_static.txt
Normal file
BIN
common/test/data/aside/static/textbook.pdf
Normal file
BIN
common/test/data/aside/static/textbook.pdf
Normal file
Binary file not shown.
0
common/test/data/aside/tabs/resources.html
Normal file
0
common/test/data/aside/tabs/resources.html
Normal file
0
common/test/data/aside/tabs/syllabus.html
Normal file
0
common/test/data/aside/tabs/syllabus.html
Normal file
@@ -1,6 +1,5 @@
|
||||
<b>Lab 2A: Superposition Experiment</b>
|
||||
|
||||
<<<<<<< Updated upstream
|
||||
<p>Isn't the toy course great?</p>
|
||||
|
||||
<p>Let's add some markup that uses non-ascii characters.
|
||||
@@ -8,6 +7,3 @@ For example, we should be able to write words like encyclopædia, or foreig
|
||||
Looking beyond latin-1, we should handle math symbols: πr² ≤ ∞.
|
||||
And it shouldn't matter if we use entities or numeric codes — Ω ≠ π ≡ Ω ≠ π.
|
||||
</p>
|
||||
=======
|
||||
<p>Isn't the toy course great? — ≤</p>
|
||||
>>>>>>> Stashed changes
|
||||
|
||||
Reference in New Issue
Block a user