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
49f402e3
Commit
49f402e3
authored
May 07, 2012
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debug print statements
parent
47c83264
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
djangoapps/courseware/modules/capa_module.py
+0
-10
No files found.
djangoapps/courseware/modules/capa_module.py
View file @
49f402e3
...
...
@@ -92,7 +92,6 @@ class Module(XModule):
# User submitted a problem, and hasn't reset. We don't want
# more submissions.
if
self
.
lcp
.
done
and
self
.
rerandomize
==
"always"
:
#print "!"
check_button
=
False
save_button
=
False
...
...
@@ -247,7 +246,6 @@ class Module(XModule):
return
False
if
self
.
show_answer
==
'always'
:
return
True
print
"aa"
,
self
.
show_answer
raise
Http404
def
get_answer
(
self
,
get
):
...
...
@@ -276,15 +274,12 @@ class Module(XModule):
for
key
in
get
:
answers
[
'_'
.
join
(
key
.
split
(
'_'
)[
1
:])]
=
get
[
key
]
# print "XXX", answers, get
event_info
[
'answers'
]
=
answers
# Too late. Cannot submit
if
self
.
closed
():
event_info
[
'failure'
]
=
'closed'
self
.
tracker
(
'save_problem_check_fail'
,
event_info
)
print
"cp"
raise
Http404
# Problem submitted. Student should reset before checking
...
...
@@ -292,7 +287,6 @@ class Module(XModule):
if
self
.
lcp
.
done
and
self
.
rerandomize
==
"always"
:
event_info
[
'failure'
]
=
'unreset'
self
.
tracker
(
'save_problem_check_fail'
,
event_info
)
print
"cpdr"
raise
Http404
try
:
...
...
@@ -303,10 +297,6 @@ class Module(XModule):
except
StudentInputError
as
inst
:
self
.
lcp
=
LoncapaProblem
(
filename
,
id
=
lcp_id
,
state
=
old_state
)
traceback
.
print_exc
()
# print {'error':sys.exc_info(),
# 'answers':answers,
# 'seed':self.lcp.seed,
# 'filename':self.lcp.filename}
return
json
.
dumps
({
'success'
:
inst
.
message
})
except
:
self
.
lcp
=
LoncapaProblem
(
filename
,
id
=
lcp_id
,
state
=
old_state
)
...
...
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