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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/svnlog/__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:
56
56
 
57
57
        # No error. We must be safe.
58
58
        ctx['path'] = self.path
59
 
        ctx['url'] = ivle.util.make_path(os.path.join('svnlog', self.path))
 
59
        ctx['url'] = req.make_path(os.path.join('svnlog', self.path))
60
60
 
61
61
        sr = ivle.svn.revision_from_string(
62
62
                   req.get_fieldstorage().getfirst("r"))
69
69
        for log in ctx['logs']:
70
70
            log['date'] = ivle.date.make_date_nice(log['date'])
71
71
            for pathaction in log['paths']:
72
 
                pathaction.append(ivle.util.make_path(os.path.join('files',
 
72
                pathaction.append(req.make_path(os.path.join('files',
73
73
                                  ivle.util.split_path(req.path)[0],
74
74
                                  pathaction[0][1:])) + '?r=%d' % log['revno'])
75
75