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

« back to all changes in this revision

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

Move the remaining images to the new framework, in the new ivle.webapp.core
plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
            req.throw_redirect(util.make_path(redirectPath))
50
50
 
51
51
        # Set request attributes
52
 
        req.styles = [
53
 
            "/media/browser/browser.css",
54
 
            "/media/browser/listing.css",
55
 
            "/media/browser/editor.css",
56
 
        ]
57
 
        req.scripts = [
58
 
            "/media/common/json2.js",
59
 
            "/media/common/codepress/codepress.js",
60
 
            "/media/common/util.js",
61
 
            "/media/browser/browser.js",
62
 
            "/media/browser/listing.js",
63
 
            "/media/browser/editor.js",
64
 
            "/media/browser/specialhome.js",
65
 
        ]
66
 
        req.scripts_init = [
67
 
            "browser_init",
68
 
        ]
 
52
        self.plugin_styles[Plugin] = ['browser.css',
 
53
                                      'listing.css',
 
54
                                      'editor.css']
 
55
        self.plugin_scripts[Plugin] = ['browser.js',
 
56
                                       'listing.js',
 
57
                                       'editor.js',
 
58
                                       'specialhome.js']
 
59
        req.scripts = ["/media/common/codepress/codepress.js"]
 
60
        req.scripts_init = ["browser_init"]
69
61
 
70
62
        # The page title should contain the name of the file being browsed
71
63
        req.title = self.path.rsplit('/', 1)[-1]
172
164
        ('files/*(path)', BrowserView),
173
165
        ('files/', BrowserView),
174
166
    ]
 
167
 
 
168
    media = 'media'