~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
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
195 by mattgiuca
Configuration: Moved "default_app" setting from conf/conf.py to conf/apps.py.
19
# Which application to load by default (if the user navigates to the top level
20
# of the site). This is the app's URL name.
21
# Note that if this app requires authentication, the user will first be
22
# presented with the login screen.
23
default_app = "files"
24
93 by mattgiuca
New directory hierarchy.
25
# Application definitions
26
136 by mattgiuca
Added File Browser (browser) application. (Currently just stub).
27
app_browser =   App(dir = "browser",
28
                    name = "File Browser",
29
                    requireauth = True,
30
                    hashelp = True)
31
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
32
app_editor =   App(dir = "editor",
33
                    name = "Text Editor",
34
                    requireauth = True,
35
                    hashelp = True)
36
138 by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser).
37
app_fileservice = App(dir = "fileservice",
38
                    name = "File Service (AJAX server)",
39
                    requireauth = True,
40
                    hashelp = False)
41
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
42
app_console =     App(dir = "console",
43
                    name = "Console",
44
                    requireauth = True,
45
                    hashelp = True)
46
47
app_tutorial =     App(dir = "tutorial",
48
                    name = "Tutorial",
49
                    requireauth = True,
50
                    hashelp = True)
51
93 by mattgiuca
New directory hierarchy.
52
app_server =    App(dir = "server",
53
                    name = "Server",
54
                    requireauth = False,
55
                    hashelp = False)
56
57
app_download =  App(dir = "download",
58
                    name = "Download",
59
                    requireauth = True,
60
                    hashelp = False)
61
62
app_help =      App(dir = "help",
63
                    name = "Help",
64
                    requireauth = True,
65
                    hashelp = False)
66
67
app_debuginfo = App(dir = "debuginfo",
68
                    name = "Debug Information",
124 by mattgiuca
dispatch/request: Added new fields: method and username.
69
                    requireauth = False,
93 by mattgiuca
New directory hierarchy.
70
                    hashelp = False)
71
72
# Mapping URL names to apps
73
74
app_url = {
136 by mattgiuca
Added File Browser (browser) application. (Currently just stub).
75
    "files" : app_browser,
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
76
    "edit" : app_editor,
138 by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser).
77
    "fileservice" : app_fileservice,
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
78
    "console" : app_console,
79
    "tutorial" : app_tutorial,
93 by mattgiuca
New directory hierarchy.
80
    "serve" : app_server,
81
    "download" : app_download,
82
    "help" : app_help,
124 by mattgiuca
dispatch/request: Added new fields: method and username.
83
    #"debuginfo" : app_debuginfo,
93 by mattgiuca
New directory hierarchy.
84
}
85
86
# List of apps that go in the tabs at the top
87
# (The others are hidden unless they are linked to)
88
# Note: The values in this list are the URL names as seen in app_url.
89
193 by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial.
90
apps_in_tabs = ["files", "edit", "console", "tutorial", "help"]