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

« back to all changes in this revision

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

Merge from new-dispatch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
class ConsoleView(XHTMLView):
8
8
    appname = 'console'
 
9
    help = 'Console'
9
10
 
10
11
    plugin_scripts = {'ivle.webapp.console': ['console.js']}
11
12
    plugin_styles  = {'ivle.webapp.console': ['console.css']}
14
15
    # Don't load the console overlay when we already have a console.
15
16
    overlay_blacklist = [ConsoleOverlay]
16
17
 
 
18
    def authorize(self, req):
 
19
        return req.user is not None
 
20
 
17
21
    def populate(self, req, ctx):
18
22
        ctx['windowpane'] = False
19
 
 
 
23
        ctx['start_body_attrs'] = {}
20
24
 
21
25
class Plugin(ViewPlugin, OverlayPlugin, MediaPlugin):
22
 
    """
23
 
    The Plugin class for the console plugin.
24
 
    """
25
26
    urls = [
26
27
        ('console/service', ConsoleServiceRESTView),
27
28
        ('console', ConsoleView),
30
31
        ConsoleOverlay,
31
32
    ]
32
33
    media = 'media'
 
34
    help = {'Console': 'help.html'}