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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-07-04 12:07:19 UTC
  • mto: (1294.4.2 ui-the-third)
  • mto: This revision was merged to the branch mainline in revision 1353.
  • Revision ID: grantw@unimelb.edu.au-20090704120719-t2kw3f4axb0hqcyr
Port the console and service to object traversal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
from ivle.webapp.console.service import ConsoleServiceRESTView
3
3
from ivle.webapp.console.overlay import ConsoleOverlay
4
4
from ivle.webapp.base.xhtml import XHTMLView
 
5
from ivle.webapp import ApplicationRoot
5
6
 
6
7
 
7
8
class ConsoleView(XHTMLView):
23
24
        ctx['start_body_attrs'] = {}
24
25
 
25
26
class Plugin(ViewPlugin, OverlayPlugin, MediaPlugin):
26
 
    urls = [
27
 
        ('console/service', ConsoleServiceRESTView),
28
 
        ('console', ConsoleView),
29
 
    ]
 
27
    views = [(ApplicationRoot, ('console', '+index'), ConsoleView),
 
28
             (ApplicationRoot, ('console', 'service'), ConsoleServiceRESTView),
 
29
             ]
 
30
 
30
31
    tabs = [
31
32
        ('console', 'Console', 'Try out your code in a Python console',
32
33
         'console.png', 'console', 3)
33
34
    ]
 
35
 
34
36
    overlays = [
35
37
        ConsoleOverlay,
36
38
    ]
 
39
 
37
40
    media = 'media'
38
41
    help = {'Console': 'help.html'}