Pass S3 interface in module_render

This commit is contained in:
Vik Paruchuri
2013-02-11 17:54:37 -05:00
parent 120c0e139e
commit 01e8fe8d08
2 changed files with 24 additions and 4 deletions

View File

@@ -870,8 +870,7 @@ class ModuleSystem(object):
node_path="",
anonymous_student_id='',
course_id=None,
peer_grading_interface=None,
staff_grading_interface=None,
open_ended_grading_interface=None,
s3_interface=None):
'''
Create a closure around the system environment.
@@ -923,8 +922,7 @@ class ModuleSystem(object):
self.anonymous_student_id = anonymous_student_id
self.course_id = course_id
self.user_is_staff = user is not None and user.is_staff
self.peer_grading_interface = peer_grading_interface
self.staff_grading_interface = staff_grading_interface
self.open_ended_grading_interface = open_ended_grading_interface
self.s3_interface = s3_interface
def get(self, attr):