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
d9b24f43
Commit
d9b24f43
authored
Jun 29, 2017
by
Douglas Cerna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used name instead of usage id
parent
03062df9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
problem_builder/mcq.py
+2
-13
No files found.
problem_builder/mcq.py
View file @
d9b24f43
...
...
@@ -196,12 +196,12 @@ class MCQBlock(SubmittingXBlockMixin, QuestionnaireAbstractBlock):
def
url_name
(
self
):
"""
Get the url_name for this block. In Studio/LMS it is provided by a mixin, so we just
defer to super(). In the workbench or any other platform, we use the
usage_id
.
defer to super(). In the workbench or any other platform, we use the
name
.
"""
try
:
return
super
(
MCQBlock
,
self
)
.
url_name
except
AttributeError
:
return
unicode
(
self
.
scope_ids
.
usage_id
)
return
self
.
name
class
RatingBlock
(
MCQBlock
):
...
...
@@ -260,17 +260,6 @@ class RatingBlock(MCQBlock):
self
.
render_children
(
context
,
fragment
,
can_reorder
=
True
,
can_add
=
False
)
return
fragment
@property
def
url_name
(
self
):
"""
Get the url_name for this block. In Studio/LMS it is provided by a mixin, so we just
defer to super(). In the workbench or any other platform, we use the name.
"""
try
:
return
super
(
RatingBlock
,
self
)
.
url_name
except
AttributeError
:
return
self
.
name
def
student_view
(
self
,
context
):
fragment
=
super
(
RatingBlock
,
self
)
.
student_view
(
context
)
rendering_for_studio
=
None
...
...
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