This:
1. Deletes XModuleDescriptorToXBlockMixin
2. Deletes `metadata_traslations` and `_translate()` from `XmlParserMixin`,
and all related implementations.
3. Removes translations of deprecated OLX attributes during import/export:
<old_attr> : <new_attr>
- 'slug' : 'url_name'
- 'name' : 'display_name'
- 'id' : 'discussion_id' (Discussion XBlock)
- 'for' : 'discussion_target' (Discussion XBlock)
- 'attempts' : 'max_attempts' (CAPA)
32 lines
928 B
XML
32 lines
928 B
XML
<problem weight="null" max_attempts="10" markdown="null">
|
|
<script type="loncapa/python">
|
|
|
|
def two_d_grader(expect,ans):
|
|
import json
|
|
ans=json.loads(ans)
|
|
if "ERROR" in ans["protex_answer"]:
|
|
raise ValueError("Protex did not understand your answer... try folding the protein")
|
|
return ans["protex_answer"]=="CORRECT"
|
|
|
|
|
|
</script>
|
|
<text>
|
|
<customresponse cfn="two_d_grader">
|
|
<designprotein2dinput width="855" height="500" target_shape="W;W;W;W;W;W;W"/>
|
|
</customresponse>
|
|
</text>
|
|
<p>Be sure to click "Fold" to fold your protein before you click "Check".</p>
|
|
<solution>
|
|
<p>
|
|
There are many protein sequences that will fold to the shape we asked you
|
|
about. Here is a sample sequence that will work. You can play around with
|
|
it if you are curious.
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
Stick: RRRRRRR
|
|
</li>
|
|
</ul>
|
|
</solution>
|
|
</problem>
|