From 125e0b2137290ea71a953c6d3af515c6ece82833 Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Wed, 13 Feb 2013 17:40:28 -0500 Subject: [PATCH] Track the names of uploaded images, since we aren't recording that data via the ajax calls. --- .../xmodule/open_ended_grading_classes/openendedchild.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py b/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py index ba8a74cc31..d94672d6f8 100644 --- a/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py +++ b/common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py @@ -99,6 +99,7 @@ class OpenEndedChild(object): self.accept_file_upload = static_data['accept_file_upload'] self.close_date = static_data['close_date'] self.s3_interface = static_data['s3_interface'] + self.system = system # Used for progress / grading. Currently get credit just for # completion (doesn't matter if you self-assessed correct/incorrect). @@ -339,6 +340,7 @@ class OpenEndedChild(object): if get_data['can_upload_files'] in ['true', '1']: has_file_to_upload = True file = get_data['student_file'][0] + self.system.track_function('open_ended_image_upload', {'filename': file.name}) uploaded_to_s3, image_ok, s3_public_url = self.upload_image_to_s3(file) if uploaded_to_s3: image_tag = self.generate_image_tag_from_url(s3_public_url, file.name)