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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-04-28 08:12:29 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428081229-ofhimnm145ro20kt
Remove ivle.conf dependency from ivle.webapp.tutorial.service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
from ivle.database import Exercise, ExerciseAttempt, ExerciseSave, Worksheet, \
29
29
                          Offering, Subject, Semester, WorksheetExercise
30
30
import ivle.worksheet.utils
31
 
import ivle.conf
32
31
import ivle.webapp.tutorial.test
33
32
from ivle.webapp.base.rest import (JSONRESTView, named_operation,
34
33
                                   require_permission)
85
84
            raise NotFound()
86
85
 
87
86
        # Start a console to run the tests on
88
 
        jail_path = os.path.join(ivle.conf.jail_base, req.user.login)
 
87
        jail_path = os.path.join(req.config['paths']['jails']['mounts'],
 
88
                                 req.user.login)
89
89
        working_dir = os.path.join("/home", req.user.login)
90
90
        cons = ivle.console.Console(req.user.unixid, jail_path, working_dir)
91
91