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
d17b8a55
Commit
d17b8a55
authored
Aug 06, 2012
by
kimth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #354 from MITx/arjun/grading_fix
arjun/grading fix
parents
79c0104a
310adbef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
common/lib/capa/capa/util.py
+6
-1
common/lib/xmodule/xmodule/tests/__init__.py
+1
-1
No files found.
common/lib/capa/capa/util.py
View file @
d17b8a55
...
@@ -39,5 +39,10 @@ def convert_files_to_filenames(answers):
...
@@ -39,5 +39,10 @@ def convert_files_to_filenames(answers):
'''
'''
new_answers
=
dict
()
new_answers
=
dict
()
for
answer_id
in
answers
.
keys
():
for
answer_id
in
answers
.
keys
():
new_answers
[
answer_id
]
=
unicode
(
answers
[
answer_id
])
# TODO This should be done more cleanly; however, this fixes bugs
# that were introduced with this function.
if
isinstance
(
answers
[
answer_id
],
list
):
new_answers
[
answer_id
]
=
answers
[
answer_id
]
else
:
new_answers
[
answer_id
]
=
unicode
(
answers
[
answer_id
])
return
new_answers
return
new_answers
common/lib/xmodule/xmodule/tests/__init__.py
View file @
d17b8a55
...
@@ -31,7 +31,7 @@ i4xs = ModuleSystem(
...
@@ -31,7 +31,7 @@ i4xs = ModuleSystem(
user
=
Mock
(),
user
=
Mock
(),
filestore
=
fs
.
osfs
.
OSFS
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))),
filestore
=
fs
.
osfs
.
OSFS
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))),
debug
=
True
,
debug
=
True
,
xqueue
_callback_url
=
'/'
,
xqueue
=
None
,
# TODO FIXME
is_staff
=
False
is_staff
=
False
)
)
...
...
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