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

« back to all changes in this revision

Viewing changes to www/conf/apps.py

  • Committer: William Grant
  • Date: 2010-02-23 06:11:58 UTC
  • Revision ID: grantw@unimelb.edu.au-20100223061158-05cqg88387ymjtlj
Redo console CSS, and replace the examples on the help page with something more like the modern console that also doesn't break the real console with ID conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# IVLE Configuration File
2
 
# conf/apps.py
3
 
# Configuration of plugin applications for IVLE
4
 
# These should not need to be modified by admins unless new applications are
5
 
# plugged in.
6
 
 
7
 
# Allow App objects
8
 
class App:
9
 
    def __init__(self, dir, name, requireauth = True, hashelp = False):
10
 
        self.dir = dir
11
 
        self.name = name
12
 
        self.requireauth = requireauth
13
 
        self.hashelp = hashelp
14
 
    def __repr__(self):
15
 
        return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) +
16
 
            ", requireauth=" + repr(self.requireauth) + ", hashelp="
17
 
            + repr(self.hashelp) + ")")
18
 
 
19
 
# Application definitions
20
 
 
21
 
app_dummy =     App(dir = "dummy",
22
 
                    name = "My Dummy App",
23
 
                    requireauth = True,
24
 
                    hashelp = True)
25
 
 
26
 
app_browser =   App(dir = "browser",
27
 
                    name = "File Browser",
28
 
                    requireauth = True,
29
 
                    hashelp = True)
30
 
 
31
 
app_fileservice = App(dir = "fileservice",
32
 
                    name = "File Service (AJAX server)",
33
 
                    requireauth = True,
34
 
                    hashelp = False)
35
 
 
36
 
app_server =    App(dir = "server",
37
 
                    name = "Server",
38
 
                    requireauth = False,
39
 
                    hashelp = False)
40
 
 
41
 
app_download =  App(dir = "download",
42
 
                    name = "Download",
43
 
                    requireauth = True,
44
 
                    hashelp = False)
45
 
 
46
 
app_help =      App(dir = "help",
47
 
                    name = "Help",
48
 
                    requireauth = True,
49
 
                    hashelp = False)
50
 
 
51
 
app_debuginfo = App(dir = "debuginfo",
52
 
                    name = "Debug Information",
53
 
                    requireauth = False,
54
 
                    hashelp = False)
55
 
 
56
 
# Mapping URL names to apps
57
 
 
58
 
app_url = {
59
 
    "dummy" : app_dummy,
60
 
    "files" : app_browser,
61
 
    "fileservice" : app_fileservice,
62
 
    "serve" : app_server,
63
 
    "download" : app_download,
64
 
    "help" : app_help,
65
 
    #"debuginfo" : app_debuginfo,
66
 
}
67
 
 
68
 
# List of apps that go in the tabs at the top
69
 
# (The others are hidden unless they are linked to)
70
 
# Note: The values in this list are the URL names as seen in app_url.
71
 
 
72
 
apps_in_tabs = ["dummy", "files", "help"]