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
c9a5bc05
Commit
c9a5bc05
authored
Apr 28, 2014
by
Filippo Valsorda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set a default display_name to "Mentoring Block"
parent
9c42ebb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
mentoring/mentoring.py
+11
-0
No files found.
mentoring/mentoring.py
View file @
c9a5bc05
...
@@ -257,3 +257,14 @@ class MentoringBlock(XBlockWithLightChildren):
...
@@ -257,3 +257,14 @@ class MentoringBlock(XBlockWithLightChildren):
Scenarios displayed by the workbench. Load them from external (private) repository
Scenarios displayed by the workbench. Load them from external (private) repository
"""
"""
return
get_scenarios_from_path
(
'templates/xml'
)
return
get_scenarios_from_path
(
'templates/xml'
)
@property
def
display_name_with_default
(
self
):
"""
Return a display name for the module: use display_name if defined in
metadata, otherwise use a custom default value.
"""
name
=
self
.
display_name
if
name
is
None
:
name
=
"Mentoring Block"
return
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