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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-04-28 07:07:48 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428070748-fxlac3kcncdj21gu
Don't use ivle.conf in ivle.webapp.tutorial.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
import genshi
34
34
 
35
 
import ivle.conf
36
35
import ivle.database
37
36
from ivle.database import Subject, Offering, Semester, Exercise, \
38
37
                          ExerciseSave, WorksheetExercise
199
198
        if not self.context:
200
199
            raise NotFound()
201
200
 
202
 
        subjectdir = os.path.join(ivle.conf.subjects_base,
 
201
        subjectdir = os.path.join(req.config['paths']['data'],
 
202
                                  'content/subjects',
203
203
                                  self.context.short_name, 'media')
204
204
        return os.path.join(subjectdir, self.path)
205
205