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

« back to all changes in this revision

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

ivle.webapp.base.views#XHTMLView: Set the content type to text/html.
ivle.webapp.browser#BrowserView: Don't set the content type.
ivle.webapp.groups#GroupsView: Clean up, and don't set the content type. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
            req.throw_redirect(util.make_path(redirectPath))
53
53
 
54
54
        # Set request attributes
55
 
        req.content_type = "text/html"
56
55
        req.styles = [
57
56
            "/media/browser/browser.css",
58
57
            "/media/browser/listing.css",
71
70
            "browser_init",
72
71
        ]
73
72
 
74
 
        # Have dispatch print head and foot
75
73
        # The page title should contain the name of the file being browsed
76
74
        req.title = self.path.rsplit('/', 1)[-1]
77
75