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
912800ca
Commit
912800ca
authored
Feb 20, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix location string object problems
parent
d5ba5457
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
+2
-2
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
+8
-1
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/open_ended_module.py
View file @
912800ca
...
@@ -108,7 +108,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
...
@@ -108,7 +108,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
self
.
answer
=
find_with_default
(
oeparam
,
'answer_display'
,
'No answer given.'
)
self
.
answer
=
find_with_default
(
oeparam
,
'answer_display'
,
'No answer given.'
)
parsed_grader_payload
.
update
({
parsed_grader_payload
.
update
({
'location'
:
s
ystem
.
location
.
url
()
,
'location'
:
s
elf
.
location_string
,
'course_id'
:
system
.
course_id
,
'course_id'
:
system
.
course_id
,
'prompt'
:
prompt_string
,
'prompt'
:
prompt_string
,
'rubric'
:
rubric_string
,
'rubric'
:
rubric_string
,
...
@@ -138,7 +138,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
...
@@ -138,7 +138,7 @@ class OpenEndedModule(openendedchild.OpenEndedChild):
"""
"""
event_info
=
dict
()
event_info
=
dict
()
event_info
[
'problem_id'
]
=
s
ystem
.
location
.
url
()
event_info
[
'problem_id'
]
=
s
elf
.
location_string
event_info
[
'student_id'
]
=
system
.
anonymous_student_id
event_info
[
'student_id'
]
=
system
.
anonymous_student_id
event_info
[
'survey_responses'
]
=
get
event_info
[
'survey_responses'
]
=
get
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
View file @
912800ca
...
@@ -108,6 +108,12 @@ class OpenEndedChild(object):
...
@@ -108,6 +108,12 @@ class OpenEndedChild(object):
self
.
peer_gs
=
PeerGradingService
(
system
.
open_ended_grading_interface
,
system
)
self
.
peer_gs
=
PeerGradingService
(
system
.
open_ended_grading_interface
,
system
)
self
.
system
=
system
self
.
system
=
system
self
.
location_string
=
location
try
:
self
.
location_string
=
self
.
location_string
.
url
()
except
:
pass
self
.
setup_response
(
system
,
location
,
definition
,
descriptor
)
self
.
setup_response
(
system
,
location
,
definition
,
descriptor
)
def
setup_response
(
self
,
system
,
location
,
definition
,
descriptor
):
def
setup_response
(
self
,
system
,
location
,
definition
,
descriptor
):
...
@@ -418,7 +424,8 @@ class OpenEndedChild(object):
...
@@ -418,7 +424,8 @@ class OpenEndedChild(object):
return
success
,
string
return
success
,
string
def
check_if_student_can_submit
(
self
):
def
check_if_student_can_submit
(
self
):
location
=
self
.
system
.
location
.
url
()
location
=
self
.
location_string
student_id
=
self
.
system
.
anonymous_student_id
student_id
=
self
.
system
.
anonymous_student_id
success
=
False
success
=
False
allowed_to_submit
=
True
allowed_to_submit
=
True
...
...
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