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
d0e8965a
Commit
d0e8965a
authored
May 20, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pep8/pylint issues
parent
3b3cf19c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py
+6
-4
lms/djangoapps/courseware/module_render.py
+3
-3
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/grading_service_module.py
View file @
d0e8965a
...
...
@@ -53,8 +53,9 @@ class GradingService(object):
except
(
RequestException
,
ConnectionError
,
HTTPError
)
as
err
:
# reraise as promised GradingServiceError, but preserve stacktrace.
#This is a dev_facing_error
log
.
error
(
"Problem posting data to the grading controller. URL: {0}, data: {1}"
.
format
(
url
,
data
))
raise
GradingServiceError
,
str
(
err
),
sys
.
exc_info
()[
2
]
error_string
=
"Problem posting data to the grading controller. URL: {0}, data: {1}"
.
format
(
url
,
data
)
log
.
error
(
error_string
)
raise
GradingServiceError
(
error_string
)
return
r
.
text
...
...
@@ -71,8 +72,9 @@ class GradingService(object):
except
(
RequestException
,
ConnectionError
,
HTTPError
)
as
err
:
# reraise as promised GradingServiceError, but preserve stacktrace.
#This is a dev_facing_error
log
.
error
(
"Problem getting data from the grading controller. URL: {0}, params: {1}"
.
format
(
url
,
params
))
raise
GradingServiceError
,
str
(
err
),
sys
.
exc_info
()[
2
]
error_string
=
"Problem getting data from the grading controller. URL: {0}, params: {1}"
.
format
(
url
,
params
)
log
.
error
(
error_string
)
raise
GradingServiceError
(
error_string
)
return
r
.
text
...
...
lms/djangoapps/courseware/module_render.py
View file @
d0e8965a
...
...
@@ -231,9 +231,9 @@ def get_module_for_descriptor(user, request, descriptor, model_data_cache, cours
open_ended_grading_interface
[
'mock_staff_grading'
]
=
settings
.
MOCK_STAFF_GRADING
if
needs_s3_interface
:
s3_interface
=
{
'access_key'
:
getattr
(
settings
,
'AWS_ACCESS_KEY_ID'
,
''
),
'secret_access_key'
:
getattr
(
settings
,
'AWS_SECRET_ACCESS_KEY'
,
''
),
'storage_bucket_name'
:
getattr
(
settings
,
'AWS_STORAGE_BUCKET_NAME'
,
'openended'
)
'access_key'
:
getattr
(
settings
,
'AWS_ACCESS_KEY_ID'
,
''
),
'secret_access_key'
:
getattr
(
settings
,
'AWS_SECRET_ACCESS_KEY'
,
''
),
'storage_bucket_name'
:
getattr
(
settings
,
'AWS_STORAGE_BUCKET_NAME'
,
'openended'
)
}
def
inner_get_module
(
descriptor
):
...
...
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