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

« back to all changes in this revision

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

Merge from new-dispatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    """
42
42
    template = 'template.html'
43
43
    appname = 'files'
 
44
    help = 'Filesystem/Browser'
 
45
 
 
46
    def authorize(self, req):
 
47
        return req.user is not None
44
48
 
45
49
    def populate(self, req, ctx):
46
50
        if not hasattr(self, 'path'):
55
59
        self.plugin_scripts[Plugin] = ['browser.js',
56
60
                                       'listing.js',
57
61
                                       'editor.js',
58
 
                                       'specialhome.js']
59
 
        req.scripts = ["/media/common/codepress/codepress.js"]
 
62
                                       'specialhome.js',
 
63
                                       'codepress/codepress.js']
60
64
        req.scripts_init = ["browser_init"]
61
65
 
62
66
        # The page title should contain the name of the file being browsed
166
170
 
167
171
    cookies = {'clipboard': None}
168
172
 
 
173
    help = {'Filesystem': {'Browser': 'help.html'}}
 
174
 
169
175
    media = 'media'