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

93 by mattgiuca
New directory hierarchy.
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
261 by mattgiuca
conf/apps.py: Added a boolean var to control whether debuginfo is visible,
7
enable_debuginfo = False
8
93 by mattgiuca
New directory hierarchy.
9
# Allow App objects
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
10
# Note: icon is a string of a file basename. The icon files are found in
11
# app_icon_dir, defined below.
93 by mattgiuca
New directory hierarchy.
12
class App:
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
13
    def __init__(self, dir, name, icon = None, requireauth = True,
14
        hashelp = False):
93 by mattgiuca
New directory hierarchy.
15
        self.dir = dir
16
        self.name = name
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
17
        self.icon = icon
93 by mattgiuca
New directory hierarchy.
18
        self.requireauth = requireauth
19
        self.hashelp = hashelp
20
    def __repr__(self):
21
        return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) +
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
22
            ", icon=" + repr(self.icon) +
93 by mattgiuca
New directory hierarchy.
23
            ", requireauth=" + repr(self.requireauth) + ", hashelp="
24
            + repr(self.hashelp) + ")")
25
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
26
# Directory where app icons are stored, relative to the IVLE root.
27
app_icon_dir = "media/images/apps"
199 by mattgiuca
Added small versions of all the app icons to images. These are used for
28
# Small version of icons (16x16, for favicon)
29
app_icon_dir_small = "media/images/apps/small"
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
30
195 by mattgiuca
Configuration: Moved "default_app" setting from conf/conf.py to conf/apps.py.
31
# Which application to load by default (if the user navigates to the top level
32
# of the site). This is the app's URL name.
33
# Note that if this app requires authentication, the user will first be
34
# presented with the login screen.
35
default_app = "files"
259 by mattgiuca
setup.py: Added a new config variable "public_host", which lets the admin set
36
# Which application to use for "public host" URLs.
37
# (See conf.py)
38
public_app = "serve"
195 by mattgiuca
Configuration: Moved "default_app" setting from conf/conf.py to conf/apps.py.
39
93 by mattgiuca
New directory hierarchy.
40
# Application definitions
41
136 by mattgiuca
Added File Browser (browser) application. (Currently just stub).
42
app_browser =   App(dir = "browser",
43
                    name = "File Browser",
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
44
                    icon = "browser.png",
136 by mattgiuca
Added File Browser (browser) application. (Currently just stub).
45
                    requireauth = True,
46
                    hashelp = True)
47
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
48
app_editor =   App(dir = "editor",
49
                    name = "Text Editor",
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
50
                    icon = "editor.png",
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
51
                    requireauth = True,
52
                    hashelp = True)
53
138 by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser).
54
app_fileservice = App(dir = "fileservice",
55
                    name = "File Service (AJAX server)",
56
                    requireauth = True,
57
                    hashelp = False)
58
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
59
app_console =     App(dir = "console",
60
                    name = "Console",
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
61
                    icon = "console.png",
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
62
                    requireauth = True,
63
                    hashelp = True)
64
216 by mattgiuca
Added new app "consoleservice", ajax back end which runs the console daemon.
65
app_consoleservice = App(dir = "consoleservice",
66
                    name = "Console Service",
67
                    requireauth = True,
68
                    hashelp = False)
69
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
70
app_tutorial =     App(dir = "tutorial",
71
                    name = "Tutorial",
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
72
                    icon = "tutorial.png",
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
73
                    requireauth = True,
74
                    hashelp = True)
75
300 by mattgiuca
conf/apps: Added TutorialService as a registered app.
76
app_tutorialservice = App(dir = "tutorialservice",
77
                    name = "Tutorial Service",
78
                    requireauth = True,
79
                    hashelp = False)
80
93 by mattgiuca
New directory hierarchy.
81
app_server =    App(dir = "server",
82
                    name = "Server",
265 by mattgiuca
apps: "serve" app now requires authentication like all other apps.
83
                    requireauth = True,
93 by mattgiuca
New directory hierarchy.
84
                    hashelp = False)
85
86
app_download =  App(dir = "download",
87
                    name = "Download",
88
                    requireauth = True,
89
                    hashelp = False)
90
91
app_help =      App(dir = "help",
92
                    name = "Help",
196 by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page.
93
                    icon = "help.png",
93 by mattgiuca
New directory hierarchy.
94
                    requireauth = True,
95
                    hashelp = False)
96
97
app_debuginfo = App(dir = "debuginfo",
98
                    name = "Debug Information",
124 by mattgiuca
dispatch/request: Added new fields: method and username.
99
                    requireauth = False,
93 by mattgiuca
New directory hierarchy.
100
                    hashelp = False)
101
102
# Mapping URL names to apps
103
104
app_url = {
136 by mattgiuca
Added File Browser (browser) application. (Currently just stub).
105
    "files" : app_browser,
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
106
    "edit" : app_editor,
138 by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser).
107
    "fileservice" : app_fileservice,
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
108
    "console" : app_console,
216 by mattgiuca
Added new app "consoleservice", ajax back end which runs the console daemon.
109
    "consoleservice" : app_consoleservice,
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
110
    "tutorial" : app_tutorial,
300 by mattgiuca
conf/apps: Added TutorialService as a registered app.
111
    "tutorialservice" : app_tutorialservice,
93 by mattgiuca
New directory hierarchy.
112
    "serve" : app_server,
113
    "download" : app_download,
114
    "help" : app_help,
115
}
261 by mattgiuca
conf/apps.py: Added a boolean var to control whether debuginfo is visible,
116
if enable_debuginfo:
117
    app_url["debuginfo"] = app_debuginfo
93 by mattgiuca
New directory hierarchy.
118
119
# List of apps that go in the tabs at the top
120
# (The others are hidden unless they are linked to)
121
# Note: The values in this list are the URL names as seen in app_url.
122
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
123
apps_in_tabs = ["files", "edit", "console", "tutorial", "help"]