~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-29 02:54:12 UTC
  • mfrom: (1291 trunk)
  • mto: This revision was merged to the branch mainline in revision 1322.
  • Revision ID: grantw@unimelb.edu.au-20090629025412-9sngm9ly3zwp1owu
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
                                       'editor.js',
63
63
                                       'specialhome.js',
64
64
                                       'codepress/codepress.js']
65
 
        req.scripts_init = ["browser_init"]
 
65
        self.scripts_init = ["browser_init"]
66
66
 
67
67
        # Start writing data
68
68
 
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))