From 67f6d6c4d1b9bddf7117f42971dfbddad7862246 Mon Sep 17 00:00:00 2001 From: Alexander Kryklia Date: Fri, 19 Jul 2013 12:05:17 +0300 Subject: [PATCH] Fixes code_jail imports and draganddrop yaml --- .../templates/problem/drag_and_drop.yaml | 32 +++++++++---------- requirements/edx/local.txt | 1 + 2 files changed, 17 insertions(+), 16 deletions(-) diff --git a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml index 4b77c9a249..678b75716b 100644 --- a/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml +++ b/common/lib/xmodule/xmodule/templates/problem/drag_and_drop.yaml @@ -20,22 +20,22 @@ data: | - correct_answer = { - '1': [[70, 150], 121], - '6': [[190, 150], 121], - '8': [[190, 150], 121], - '2': [[310, 150], 121], - '9': [[310, 150], 121], - '11': [[310, 150], 121], - '4': [[420, 150], 121], - '7': [[420, 150], 121], - '3': [[550, 150], 121], - '5': [[550, 150], 121], - '10': [[550, 150], 121]} - if draganddrop.grade(submission[0], correct_answer): - correct = ['correct'] - else: - correct = ['incorrect'] + correct_answer = { + '1': [[70, 150], 121], + '6': [[190, 150], 121], + '8': [[190, 150], 121], + '2': [[310, 150], 121], + '9': [[310, 150], 121], + '11': [[310, 150], 121], + '4': [[420, 150], 121], + '7': [[420, 150], 121], + '3': [[550, 150], 121], + '5': [[550, 150], 121], + '10': [[550, 150], 121]} + if draganddrop.grade(submission[0], correct_answer): + correct = ['correct'] + else: + correct = ['incorrect'] diff --git a/requirements/edx/local.txt b/requirements/edx/local.txt index f5ba60e21b..04a1f7f2c6 100644 --- a/requirements/edx/local.txt +++ b/requirements/edx/local.txt @@ -2,6 +2,7 @@ -e common/lib/calc -e common/lib/capa -e common/lib/chem +-e common/lib/sandbox-packages -e common/lib/symmath -e common/lib/xmodule -e .