Commit cefd5f8a by Calen Pennington

Remove debug print statements

parent 6848e75d
...@@ -92,7 +92,6 @@ class Module(XModule): ...@@ -92,7 +92,6 @@ class Module(XModule):
# User submitted a problem, and hasn't reset. We don't want # User submitted a problem, and hasn't reset. We don't want
# more submissions. # more submissions.
if self.lcp.done and self.rerandomize == "always": if self.lcp.done and self.rerandomize == "always":
#print "!"
check_button = False check_button = False
save_button = False save_button = False
...@@ -247,7 +246,6 @@ class Module(XModule): ...@@ -247,7 +246,6 @@ class Module(XModule):
return False return False
if self.show_answer == 'always': if self.show_answer == 'always':
return True return True
print "aa", self.show_answer
raise Http404 raise Http404
def get_answer(self, get): def get_answer(self, get):
...@@ -276,15 +274,12 @@ class Module(XModule): ...@@ -276,15 +274,12 @@ class Module(XModule):
for key in get: for key in get:
answers['_'.join(key.split('_')[1:])]=get[key] answers['_'.join(key.split('_')[1:])]=get[key]
# print "XXX", answers, get
event_info['answers']=answers event_info['answers']=answers
# Too late. Cannot submit # Too late. Cannot submit
if self.closed(): if self.closed():
event_info['failure']='closed' event_info['failure']='closed'
self.tracker('save_problem_check_fail', event_info) self.tracker('save_problem_check_fail', event_info)
print "cp"
raise Http404 raise Http404
# Problem submitted. Student should reset before checking # Problem submitted. Student should reset before checking
...@@ -292,7 +287,6 @@ class Module(XModule): ...@@ -292,7 +287,6 @@ class Module(XModule):
if self.lcp.done and self.rerandomize == "always": if self.lcp.done and self.rerandomize == "always":
event_info['failure']='unreset' event_info['failure']='unreset'
self.tracker('save_problem_check_fail', event_info) self.tracker('save_problem_check_fail', event_info)
print "cpdr"
raise Http404 raise Http404
try: try:
...@@ -303,10 +297,6 @@ class Module(XModule): ...@@ -303,10 +297,6 @@ class Module(XModule):
except StudentInputError as inst: except StudentInputError as inst:
self.lcp = LoncapaProblem(filename, id=lcp_id, state=old_state) self.lcp = LoncapaProblem(filename, id=lcp_id, state=old_state)
traceback.print_exc() traceback.print_exc()
# print {'error':sys.exc_info(),
# 'answers':answers,
# 'seed':self.lcp.seed,
# 'filename':self.lcp.filename}
return json.dumps({'success':inst.message}) return json.dumps({'success':inst.message})
except: except:
self.lcp = LoncapaProblem(filename, id=lcp_id, state=old_state) self.lcp = LoncapaProblem(filename, id=lcp_id, state=old_state)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment