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 |
||
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
26 |
app_browser = App(dir = "browser", |
27 |
name = "File Browser", |
|
28 |
requireauth = True, |
|
29 |
hashelp = True) |
|
30 |
||
138
by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser). |
31 |
app_fileservice = App(dir = "fileservice", |
32 |
name = "File Service (AJAX server)", |
|
33 |
requireauth = True, |
|
34 |
hashelp = False) |
|
35 |
||
93
by mattgiuca
New directory hierarchy. |
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", |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
53 |
requireauth = False, |
93
by mattgiuca
New directory hierarchy. |
54 |
hashelp = False) |
55 |
||
56 |
# Mapping URL names to apps
|
|
57 |
||
58 |
app_url = { |
|
59 |
"dummy" : app_dummy, |
|
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
60 |
"files" : app_browser, |
138
by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser). |
61 |
"fileservice" : app_fileservice, |
93
by mattgiuca
New directory hierarchy. |
62 |
"serve" : app_server, |
63 |
"download" : app_download, |
|
64 |
"help" : app_help, |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
65 |
#"debuginfo" : app_debuginfo,
|
93
by mattgiuca
New directory hierarchy. |
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 |
||
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
72 |
apps_in_tabs = ["dummy", "files", "help"] |