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 |
||
19 |
# Application definitions
|
|
20 |
||
21 |
app_dummy = App(dir = "dummy", |
|
22 |
name = "My Dummy App", |
|
23 |
requireauth = True, |
|
24 |
hashelp = True) |
|
25 |
||
26 |
app_server = App(dir = "server", |
|
27 |
name = "Server", |
|
28 |
requireauth = False, |
|
29 |
hashelp = False) |
|
30 |
||
31 |
app_download = App(dir = "download", |
|
32 |
name = "Download", |
|
33 |
requireauth = True, |
|
34 |
hashelp = False) |
|
35 |
||
36 |
app_help = App(dir = "help", |
|
37 |
name = "Help", |
|
38 |
requireauth = True, |
|
39 |
hashelp = False) |
|
40 |
||
41 |
app_debuginfo = App(dir = "debuginfo", |
|
42 |
name = "Debug Information", |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
43 |
requireauth = False, |
93
by mattgiuca
New directory hierarchy. |
44 |
hashelp = False) |
45 |
||
46 |
# Mapping URL names to apps
|
|
47 |
||
48 |
app_url = { |
|
49 |
"dummy" : app_dummy, |
|
50 |
"serve" : app_server, |
|
51 |
"download" : app_download, |
|
52 |
"help" : app_help, |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
53 |
#"debuginfo" : app_debuginfo,
|
93
by mattgiuca
New directory hierarchy. |
54 |
}
|
55 |
||
56 |
# List of apps that go in the tabs at the top
|
|
57 |
# (The others are hidden unless they are linked to)
|
|
58 |
# Note: The values in this list are the URL names as seen in app_url.
|
|
59 |
||
60 |
apps_in_tabs = ["dummy", "help"] |