Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
1c2b94dc
Commit
1c2b94dc
authored
Sep 20, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore xml comments in scenario files
parent
639711fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
mentoring/light_children.py
+2
-0
tests/integration/xml/mcq_with_comments_1.xml
+2
-0
No files found.
mentoring/light_children.py
View file @
1c2b94dc
...
@@ -99,6 +99,8 @@ class LightChildrenMixin(XBlockWithChildrenFragmentsMixin):
...
@@ -99,6 +99,8 @@ class LightChildrenMixin(XBlockWithChildrenFragmentsMixin):
@classmethod
@classmethod
def
add_node_as_child
(
cls
,
block
,
xml_child
,
child_id
):
def
add_node_as_child
(
cls
,
block
,
xml_child
,
child_id
):
if
xml_child
.
tag
is
etree
.
Comment
:
return
# Instantiate child
# Instantiate child
child_class
=
cls
.
get_class_by_element
(
xml_child
.
tag
)
child_class
=
cls
.
get_class_by_element
(
xml_child
.
tag
)
child
=
child_class
(
block
)
child
=
child_class
(
block
)
...
...
tests/integration/xml/mcq_with_comments_1.xml
View file @
1c2b94dc
...
@@ -12,6 +12,8 @@
...
@@ -12,6 +12,8 @@
<tip
require=
"elegance"
width =
"600"
height =
"800"
>
This is something everyone has to like about this MRQ
</tip>
<tip
require=
"elegance"
width =
"600"
height =
"800"
>
This is something everyone has to like about this MRQ
</tip>
<tip
require=
"beauty"
width =
"400"
height =
"600"
>
This is something everyone has to like about beauty
</tip>
<tip
require=
"beauty"
width =
"400"
height =
"600"
>
This is something everyone has to like about beauty
</tip>
<tip
reject=
"bugs"
width =
"100"
height =
"200"
>
Nah, there isn\'t any!
</tip>
<tip
reject=
"bugs"
width =
"100"
height =
"200"
>
Nah, there isn\'t any!
</tip>
<!--<message type="on-submit">Thank you for answering!</message> -->
</mrq>
</mrq>
<message
type=
"completed"
>
<message
type=
"completed"
>
...
...
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