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