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.110
by William Grant
Implement an authorization system in the new framework. This breaks the REST |
18 |
def authorize(self, req): |
19 |
return req.user is not None |
|
20 |
||
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
21 |
def populate(self, req, ctx): |
22 |
ctx['windowpane'] = False |
|
1099.1.101
by William Grant
Fix some issues with undefined variables in view template contexts. Genshi 0.5 |
23 |
ctx['start_body_attrs'] = {} |
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
24 |
|
1099.1.99
by William Grant
Require that plugins providing media subclass MediaPlugin. |
25 |
class Plugin(ViewPlugin, OverlayPlugin, MediaPlugin): |
1099.1.29
by William Grant
ivle.webapp.console.service: Port www/apps/consoleservice to new framework. |
26 |
urls = [ |
1099.1.72
by Nick Chadwick
Dispatch now generates an index for each plugin type, allowing plugins to |
27 |
('console/service', ConsoleServiceRESTView), |
1099.1.75
by Nick Chadwick
Added a console plugin, which now uses our new architecture. |
28 |
('console', ConsoleView), |
1099.1.29
by William Grant
ivle.webapp.console.service: Port www/apps/consoleservice to new framework. |
29 |
]
|
1099.1.115
by William Grant
Add tabs to the new framework. Move the app icons into the apps themselves. |
30 |
tabs = [ |
31 |
('console', 'Console', 'A Python console where you can try out code ' |
|
32 |
'without having to save and run it.', 'console.png', 'console', 3) |
|
33 |
]
|
|
1099.1.74
by Nick Chadwick
Added overlay system and console overlay. Note that the console overlay |
34 |
overlays = [ |
35 |
ConsoleOverlay, |
|
36 |
]
|
|
37 |
media = 'media' |
|
1099.1.100
by Nick Chadwick
Created a new help system. |
38 |
help = {'Console': 'help.html'} |