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
31042d9c
Commit
31042d9c
authored
Jul 30, 2014
by
Xavier Antoviaque
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #51 from mtyaka/dataexport-display-name
Add `display_name` to the Data export XBlock.
parents
b6a23798
2cd2fdf2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mentoring/dataexport.py
+3
-0
No files found.
mentoring/dataexport.py
View file @
31042d9c
...
...
@@ -28,6 +28,7 @@ import logging
from
itertools
import
groupby
from
webob
import
Response
from
xblock.core
import
XBlock
from
xblock.fields
import
String
,
Scope
from
xblock.fragment
import
Fragment
from
.models
import
Answer
...
...
@@ -45,6 +46,8 @@ class MentoringDataExportBlock(XBlock):
"""
An XBlock allowing the instructor team to export all the student answers as a CSV file
"""
display_name
=
String
(
help
=
"Display name of the component"
,
default
=
"Mentoring Data Export"
,
scope
=
Scope
.
settings
)
def
student_view
(
self
,
context
):
html
=
render_template
(
'templates/html/dataexport.html'
,
{
...
...
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