Commit 89639b4b by Xavier Antoviaque

Add mocked view for answers

parent e7df4268
# -*- coding: utf-8 -*-
# Imports ###########################################################
import logging
from xblock.fragment import Fragment
from xblock.problem import TextInputBlock
# Globals ###########################################################
log = logging.getLogger(__name__)
# Classes ###########################################################
class AnswerBlock(TextInputBlock):
"""
A field where the student enters an answer
......@@ -14,4 +23,7 @@ class AnswerBlock(TextInputBlock):
Must be included as a child of a mentoring block. Answers are persisted as django model instances
to make them searchable and referenceable across xblocks.
"""
pass
def mentoring_view(self, context):
# TODO: Not implemented
return Fragment(u'<textarea cols="100" rows="10"></textarea>')
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