Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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
edx
edx-platform
Commits
e66e4040
Commit
e66e4040
authored
Jan 04, 2013
by
Alexander Kryklia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replaced ordereddict with dict
parent
87c58be7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
common/lib/capa/capa/graders/draganddrop.py
+4
-5
No files found.
common/lib/capa/capa/graders/draganddrop.py
View file @
e66e4040
...
...
@@ -27,7 +27,6 @@ values are (x,y) coordinates of centers of dragged images.
"""
import
json
from
collections
import
OrderedDict
class
PositionsCompare
(
list
):
...
...
@@ -105,10 +104,10 @@ class DragAndDrop(object):
""" Grader class for drag and drop inputtype.
"""
def
__init__
(
self
):
self
.
correct_groups
=
OrderedD
ict
()
# correct groups from xml
self
.
correct_positions
=
OrderedD
ict
()
# correct positions for comparing
self
.
user_groups
=
OrderedD
ict
()
# will be populated from user answer
self
.
user_positions
=
OrderedD
ict
()
# will be populated from user answer
self
.
correct_groups
=
d
ict
()
# correct groups from xml
self
.
correct_positions
=
d
ict
()
# correct positions for comparing
self
.
user_groups
=
d
ict
()
# will be populated from user answer
self
.
user_positions
=
d
ict
()
# will be populated from user answer
def
grade
(
self
):
''' Grader user answer.
...
...
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