1099.1.99
by William Grant
Require that plugins providing media subclass MediaPlugin. |
1 |
from ivle.webapp.base.plugins import ViewPlugin, OverlayPlugin, MediaPlugin |
1099.1.29
by William Grant
ivle.webapp.console.service: Port www/apps/consoleservice to new framework. |
2 |
from ivle.webapp.console.service import ConsoleServiceRESTView |
1099.1.74
by Nick Chadwick
Added overlay system and console overlay. Note that the console overlay |
3 |
from ivle.webapp.console.overlay import ConsoleOverlay |
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
4 |
from ivle.webapp.base.xhtml import XHTMLView |
5 |
||
6 |
||
7 |
class ConsoleView(XHTMLView): |
|
1099.1.77
by William Grant
Set appname on ivle.webapp.console.ConsoleView so we get an icon and selected |
8 |
appname = 'console' |
1099.1.100
by Nick Chadwick
Created a new help system. |
9 |
help = 'Console' |
1099.1.77
by William Grant
Set appname on ivle.webapp.console.ConsoleView so we get an icon and selected |
10 |
|
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
11 |
plugin_scripts = {'ivle.webapp.console': ['console.js']} |
12 |
plugin_styles = {'ivle.webapp.console': ['console.css']} |
|
13 |
plugin_scripts_init = ['console_init'] |
|
1099.1.77
by William Grant
Set appname on ivle.webapp.console.ConsoleView so we get an icon and selected |
14 |
|
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
15 |
# Don't load the console overlay when we already have a console.
|
16 |
overlay_blacklist = [ConsoleOverlay] |
|
1099.1.77
by William Grant
Set appname on ivle.webapp.console.ConsoleView so we get an icon and selected |
17 |
|
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
18 |
def populate(self, req, ctx): |
19 |
ctx['windowpane'] = False |
|
20 |
||
1099.1.99
by William Grant
Require that plugins providing media subclass MediaPlugin. |
21 |
class Plugin(ViewPlugin, OverlayPlugin, MediaPlugin): |
1099.1.29
by William Grant
ivle.webapp.console.service: Port www/apps/consoleservice to new framework. |
22 |
urls = [ |
1099.1.72
by Nick Chadwick
Dispatch now generates an index for each plugin type, allowing plugins to |
23 |
('console/service', ConsoleServiceRESTView), |
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
24 |
('console', ConsoleView), |
1099.1.29
by William Grant
ivle.webapp.console.service: Port www/apps/consoleservice to new framework. |
25 |
]
|
1099.1.74
by Nick Chadwick
Added overlay system and console overlay. Note that the console overlay |
26 |
overlays = [ |
27 |
ConsoleOverlay, |
|
28 |
]
|
|
29 |
media = 'media' |
|
1099.1.100
by Nick Chadwick
Created a new help system. |
30 |
help = {'Console': 'help.html'} |