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

« back to all changes in this revision

Viewing changes to ivle/webapp/filesystem/browser/__init__.py

  • Committer: William Grant
  • Date: 2009-06-25 12:55:10 UTC
  • Revision ID: grantw@unimelb.edu.au-20090625125510-lb0leth8nbv99fsc
Fix browser/diff/svnlog titles for paths with trailing slashes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        self.gen_actions(req, ctx)
86
86
 
87
87
        # The page title should contain the name of the file being browsed
88
 
        ctx['title'] = self.path.rsplit('/', 1)[-1]
 
88
        ctx['title'] = os.path.normpath(self.path).rsplit('/', 1)[-1]
89
89
 
90
90
        ctx['fileservice_action'] = req.make_path(os.path.join("fileservice",
91
91
                                                                self.path))