Commit c9a5bc05 by Filippo Valsorda

Set a default display_name to "Mentoring Block"

parent 9c42ebb5
...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment