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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-04-28 06:39:38 UTC
  • Revision ID: grantw@unimelb.edu.au-20090428063938-9m60hweimymu3gdm
Use Request.make_path everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
import ivle.conf
34
34
import ivle.interpret
35
 
import ivle.util
36
35
from ivle.webapp.base.views import BaseView
37
36
from ivle.webapp.base.plugins import ViewPlugin
38
37
 
53
52
        """Handler for the File Services application."""
54
53
        if len(self.path) == 0:
55
54
            # If no path specified, default to the user's home directory
56
 
            req.throw_redirect(ivle.util.make_path(os.path.join('fileservice',
57
 
                                                           req.user.login)))
 
55
            req.throw_redirect(req.make_path(os.path.join('fileservice',
 
56
                                                          req.user.login)))
58
57
 
59
58
        interp_object = ivle.interpret.interpreter_objects["cgi-python"]
60
59
        user_jail_dir = os.path.join(ivle.conf.jail_base, req.user.login)