Changed parameters from **args based on code review

This commit is contained in:
Piotr Mitros
2012-05-09 17:36:56 -04:00
parent f187a9e312
commit f511a5e0dd

View File

@@ -35,11 +35,11 @@ import courseware.modules
log = logging.getLogger("mitx.courseware")
class I4xSystem(object):
def __init__(self, **args):
self.ajax_url = args['ajax_url']
self.track_function = args['track_function']
def __init__(self, ajax_url, track_function, render_function, filestore=None):
self.ajax_url = ajax_url
self.track_function = track_function
self.filestore = OSFS(settings.DATA_DIR)
self.render_function = args['render_function']
self.render_function = render_function
self.exception404 = Http404
def object_cache(cache, user, module_type, module_id):