~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/exercise_service.py

  • Committer: William Grant
  • Date: 2010-02-15 10:06:50 UTC
  • Revision ID: grantw@unimelb.edu.au-20100215100650-hunx6nu4813zeq5u
Fix circular import in exercise_service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
from ivle.webapp.errors import NotFound, BadRequest
27
27
from ivle.webapp.tutorial.test.TestFramework import (
28
28
    TestCreationError, TestError)
29
 
from ivle.worksheet.utils import test_exercise_submission
30
29
 
31
30
 
32
31
class ExercisesRESTView(JSONRESTView):
320
319
 
321
320
    @named_operation(u'edit')
322
321
    def test(self, req, code):
 
322
        from ivle.worksheet.utils import test_exercise_submission
323
323
        try:
324
324
            return test_exercise_submission(
325
325
                req.config, req.user, self.context, code)