1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
from ivle.webapp.base.plugins import ViewPlugin, OverlayPlugin, MediaPlugin
from ivle.webapp.console.service import ConsoleServiceRESTView
from ivle.webapp.console.overlay import ConsoleOverlay
from ivle.webapp.base.xhtml import XHTMLView
class ConsoleView(XHTMLView):
appname = 'console'
help = 'Console'
plugin_scripts = {'ivle.webapp.console': ['console.js']}
plugin_styles = {'ivle.webapp.console': ['console.css']}
plugin_scripts_init = ['console_init']
# Don't load the console overlay when we already have a console.
overlay_blacklist = [ConsoleOverlay]
def populate(self, req, ctx):
ctx['windowpane'] = False
class Plugin(ViewPlugin, OverlayPlugin, MediaPlugin):
urls = [
('console/service', ConsoleServiceRESTView),
('console', ConsoleView),
]
overlays = [
ConsoleOverlay,
]
media = 'media'
help = {'Console': 'help.html'}
|