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

« back to all changes in this revision

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

Display the current path as the filebrowser title again. Broke in genshi port.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                                       'codepress/codepress.js']
64
64
        req.scripts_init = ["browser_init"]
65
65
 
66
 
        # The page title should contain the name of the file being browsed
67
 
        req.title = self.path.rsplit('/', 1)[-1]
68
 
 
69
66
        _, localpath = studpath.url_to_local(self.path)
70
67
        if localpath is None:
71
68
            raise NotFound()
80
77
        self.gen_path(req, ctx)
81
78
        self.gen_actions(req, ctx)
82
79
 
 
80
        # The page title should contain the name of the file being browsed
 
81
        ctx['title'] = self.path.rsplit('/', 1)[-1]
 
82
 
83
83
        ctx['fileservice_action'] = util.make_path(os.path.join("fileservice", req.path))
84
84
        ctx['filename'] = cgi.escape(req.path)
85
85