Passing i4x system deeper into capa_problem

This commit is contained in:
Piotr Mitros
2012-05-17 15:37:08 -04:00
parent 67061f1b25
commit cad13b30a1
9 changed files with 84 additions and 38 deletions

View File

@@ -15,7 +15,6 @@ from mitxmako.shortcuts import render_to_string
from models import StudentModule
import track.views
import courseware.modules
@@ -56,6 +55,8 @@ def make_track_function(request):
tracking function to them. This generates a closure for each request
that gives a clean interface on both sides.
'''
import track.views
def f(event_type, event):
return track.views.server_track(request, event_type, event, page='x_module')
return f