1
from ivle.webapp.base.plugins import ViewPlugin, OverlayPlugin, MediaPlugin
2
from ivle.webapp.console.service import ConsoleServiceRESTView
3
from ivle.webapp.console.overlay import ConsoleOverlay
4
from ivle.webapp.base.xhtml import XHTMLView
7
class ConsoleView(XHTMLView):
10
plugin_scripts = {'ivle.webapp.console': ['console.js']}
11
plugin_styles = {'ivle.webapp.console': ['console.css']}
12
plugin_scripts_init = ['console_init']
14
# Don't load the console overlay when we already have a console.
15
overlay_blacklist = [ConsoleOverlay]
17
def populate(self, req, ctx):
18
ctx['windowpane'] = False
21
class Plugin(ViewPlugin, OverlayPlugin, MediaPlugin):
23
The Plugin class for the console plugin.
26
('console/service', ConsoleServiceRESTView),
27
('console', ConsoleView),