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
d5455319
Commit
d5455319
authored
Jul 11, 2016
by
Braden MacDonald
Committed by
Braden MacDonald
Jul 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix mako template context error
parent
fe0e8254
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
problem_builder/answer.py
+2
-2
problem_builder/step.py
+2
-2
problem_builder/table.py
+2
-2
No files found.
problem_builder/answer.py
View file @
d5455319
...
...
@@ -164,7 +164,7 @@ class AnswerBlock(AnswerMixin, StepMixin, StudioEditableXBlockMixin, XBlock):
def
mentoring_view
(
self
,
context
=
None
):
""" Render this XBlock within a mentoring block. """
context
=
context
or
{}
context
=
context
.
copy
()
if
context
else
{}
context
[
'self'
]
=
self
context
[
'hide_header'
]
=
context
.
get
(
'hide_header'
,
False
)
or
not
self
.
show_title
html
=
loader
.
render_template
(
'templates/html/answer_editable.html'
,
context
)
...
...
@@ -266,7 +266,7 @@ class AnswerRecapBlock(AnswerMixin, StudioEditableXBlockMixin, XBlock):
def
mentoring_view
(
self
,
context
=
None
):
""" Render this XBlock within a mentoring block. """
context
=
context
or
{}
context
=
context
.
copy
()
if
context
else
{}
context
[
'title'
]
=
self
.
display_name
context
[
'description'
]
=
self
.
description
context
[
'student_input'
]
=
self
.
student_input
...
...
problem_builder/step.py
View file @
d5455319
...
...
@@ -95,12 +95,12 @@ class StepMixin(object):
return
self
.
_
(
u"Question"
)
def
author_view
(
self
,
context
):
context
=
context
or
{}
context
=
context
.
copy
()
if
context
else
{}
context
[
'hide_header'
]
=
True
return
self
.
mentoring_view
(
context
)
def
author_preview_view
(
self
,
context
):
context
=
context
or
{}
context
=
context
.
copy
()
if
context
else
{}
context
[
'hide_header'
]
=
True
return
self
.
student_view
(
context
)
...
...
problem_builder/table.py
View file @
d5455319
...
...
@@ -70,7 +70,7 @@ class MentoringTableBlock(StudioEditableXBlockMixin, StudioContainerXBlockMixin,
has_children
=
True
def
student_view
(
self
,
context
):
context
=
context
or
{}
context
=
context
.
copy
()
if
context
else
{}
fragment
=
Fragment
()
header_values
=
[]
content_values
=
[]
...
...
@@ -136,7 +136,7 @@ class MentoringTableColumn(StudioEditableXBlockMixin, StudioContainerXBlockMixin
def
mentoring_view
(
self
,
context
=
None
):
""" Render this XBlock within a mentoring block. """
context
=
context
or
{}
context
=
context
.
copy
()
if
context
else
{}
fragment
=
Fragment
()
for
child_id
in
self
.
children
:
child
=
self
.
runtime
.
get_block
(
child_id
)
...
...
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