28
by mattgiuca
src/conf: Added a handful of configuration files with some basic info needed |
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: |
|
66
by mattgiuca
conf/apps.py: Added a proper constructor for App and all applications use it. |
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 |
|
70
by mattgiuca
apps: Added app "debuginfo" which prints out IVLE system properties. |
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) + ")") |
|
28
by mattgiuca
src/conf: Added a handful of configuration files with some basic info needed |
18 |
|
19 |
# Application definitions
|
|
20 |
||
66
by mattgiuca
conf/apps.py: Added a proper constructor for App and all applications use it. |
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 |
||
69
by mattgiuca
apps: Added "Download" app which presents all files as a binary download. |
31 |
app_download = App(dir = "download", |
32 |
name = "Download", |
|
33 |
requireauth = True, |
|
34 |
hashelp = False) |
|
35 |
||
66
by mattgiuca
conf/apps.py: Added a proper constructor for App and all applications use it. |
36 |
app_help = App(dir = "help", |
37 |
name = "Help", |
|
38 |
requireauth = True, |
|
39 |
hashelp = False) |
|
32
by mattgiuca
src/dispatch: Added code to fetch and print the list of apps with links. |
40 |
|
70
by mattgiuca
apps: Added app "debuginfo" which prints out IVLE system properties. |
41 |
app_debuginfo = App(dir = "debuginfo", |
42 |
name = "Debug Information", |
|
43 |
requireauth = True, |
|
44 |
hashelp = False) |
|
45 |
||
28
by mattgiuca
src/conf: Added a handful of configuration files with some basic info needed |
46 |
# Mapping URL names to apps
|
47 |
||
48 |
app_url = { |
|
49 |
"dummy" : app_dummy, |
|
50
by mattgiuca
conf/apps.py: Added "server" app. |
50 |
"serve" : app_server, |
69
by mattgiuca
apps: Added "Download" app which presents all files as a binary download. |
51 |
"download" : app_download, |
32
by mattgiuca
src/dispatch: Added code to fetch and print the list of apps with links. |
52 |
"help" : app_help, |
70
by mattgiuca
apps: Added app "debuginfo" which prints out IVLE system properties. |
53 |
"debuginfo" : app_debuginfo, |
28
by mattgiuca
src/conf: Added a handful of configuration files with some basic info needed |
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 |
||
32
by mattgiuca
src/dispatch: Added code to fetch and print the list of apps with links. |
60 |
apps_in_tabs = ["dummy", "help"] |