409
by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web" |
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 |
enable_debuginfo = False |
|
8 |
||
9 |
# Allow App objects
|
|
10 |
# Note: icon is a string of a file basename. The icon files are found in
|
|
11 |
# app_icon_dir, defined below.
|
|
12 |
class App: |
|
13 |
def __init__(self, dir, name, icon = None, requireauth = True, |
|
14 |
hashelp = False): |
|
15 |
self.dir = dir |
|
16 |
self.name = name |
|
17 |
self.icon = icon |
|
18 |
self.requireauth = requireauth |
|
19 |
self.hashelp = hashelp |
|
20 |
def __repr__(self): |
|
21 |
return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) + |
|
22 |
", icon=" + repr(self.icon) + |
|
23 |
", requireauth=" + repr(self.requireauth) + ", hashelp=" |
|
24 |
+ repr(self.hashelp) + ")") |
|
25 |
||
26 |
# Directory where app icons are stored, relative to the IVLE root.
|
|
27 |
app_icon_dir = "media/images/apps" |
|
28 |
# Small version of icons (16x16, for favicon)
|
|
29 |
app_icon_dir_small = "media/images/apps/small" |
|
30 |
||
31 |
# Which application to load by default (if the user navigates to the top level
|
|
32 |
# of the site). This is the app's URL name.
|
|
33 |
# Note that if this app requires authentication, the user will first be
|
|
34 |
# presented with the login screen.
|
|
621
by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic |
35 |
default_app = "home" |
409
by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web" |
36 |
# Which application to use for "public host" URLs.
|
37 |
# (See conf.py)
|
|
38 |
public_app = "serve" |
|
39 |
||
40 |
# Application definitions
|
|
41 |
||
42 |
app_browser = App(dir = "browser", |
|
43 |
name = "File Browser", |
|
44 |
icon = "browser.png", |
|
45 |
requireauth = True, |
|
46 |
hashelp = True) |
|
47 |
||
48 |
app_editor = App(dir = "editor", |
|
49 |
name = "Text Editor", |
|
50 |
icon = "editor.png", |
|
51 |
requireauth = True, |
|
52 |
hashelp = True) |
|
53 |
||
54 |
app_fileservice = App(dir = "fileservice", |
|
55 |
name = "File Service (AJAX server)", |
|
56 |
requireauth = True, |
|
57 |
hashelp = False) |
|
58 |
||
59 |
app_console = App(dir = "console", |
|
60 |
name = "Console", |
|
61 |
icon = "console.png", |
|
62 |
requireauth = True, |
|
63 |
hashelp = True) |
|
64 |
||
65 |
app_consoleservice = App(dir = "consoleservice", |
|
66 |
name = "Console Service", |
|
67 |
requireauth = True, |
|
68 |
hashelp = False) |
|
69 |
||
70 |
app_tutorial = App(dir = "tutorial", |
|
71 |
name = "Tutorial", |
|
72 |
icon = "tutorial.png", |
|
73 |
requireauth = True, |
|
74 |
hashelp = True) |
|
75 |
||
76 |
app_tutorialservice = App(dir = "tutorialservice", |
|
77 |
name = "Tutorial Service", |
|
78 |
requireauth = True, |
|
79 |
hashelp = False) |
|
80 |
||
81 |
app_server = App(dir = "server", |
|
82 |
name = "Server", |
|
83 |
requireauth = True, |
|
84 |
hashelp = False) |
|
85 |
||
86 |
app_download = App(dir = "download", |
|
87 |
name = "Download", |
|
88 |
requireauth = True, |
|
89 |
hashelp = False) |
|
90 |
||
91 |
app_help = App(dir = "help", |
|
92 |
name = "Help", |
|
93 |
icon = "help.png", |
|
94 |
requireauth = True, |
|
95 |
hashelp = False) |
|
96 |
||
97 |
app_debuginfo = App(dir = "debuginfo", |
|
98 |
name = "Debug Information", |
|
99 |
requireauth = False, |
|
100 |
hashelp = False) |
|
458
by mattgiuca
Added "tos" as an app. This app simply displays the Terms of Service |
101 |
|
443
by dcoles
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0 |
102 |
app_forum = App(dir = "forum", |
103 |
name = "Forum", |
|
104 |
icon = "forum.png", |
|
105 |
requireauth = True, |
|
106 |
hashelp = False) |
|
409
by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web" |
107 |
|
458
by mattgiuca
Added "tos" as an app. This app simply displays the Terms of Service |
108 |
app_tos = App(dir = "tos", |
109 |
name = "Terms of Service", |
|
110 |
requireauth = False, |
|
111 |
hashelp = False) |
|
112 |
||
553
by mattgiuca
Added new app: Settings (UI for userservice). |
113 |
app_settings = App(dir = "settings", |
114 |
name = "Account Settings", |
|
115 |
icon = "settings.png", |
|
116 |
requireauth = True, |
|
117 |
hashelp = True) |
|
118 |
||
478
by mattgiuca
scripts/usrmgr-server: Renamed actions from dashes to underscores. |
119 |
app_userservice = App(dir = "userservice", |
465
by mattgiuca
Added new app: userservice, which is an ajax service for user management |
120 |
name = "User Management Service", |
478
by mattgiuca
scripts/usrmgr-server: Renamed actions from dashes to underscores. |
121 |
requireauth = False, |
465
by mattgiuca
Added new app: userservice, which is an ajax service for user management |
122 |
hashelp = False) |
123 |
||
562
by dcoles
Added new app: Diff (SVN diff application) |
124 |
app_diff = App(dir = "diff", |
125 |
name = "Diff", |
|
126 |
#icon = "forum.png",
|
|
127 |
requireauth = True, |
|
128 |
hashelp = False) |
|
129 |
||
621
by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic |
130 |
app_subjects = App(dir = "subjects", |
131 |
name = "Subject Homepages", |
|
132 |
requireauth = False, |
|
133 |
hashelp = False) |
|
134 |
||
135 |
app_home = App(dir = "home", |
|
136 |
name = "Home", |
|
137 |
requireauth = True, |
|
138 |
hashelp = False) |
|
139 |
||
409
by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web" |
140 |
# Mapping URL names to apps
|
141 |
||
142 |
app_url = { |
|
143 |
"files" : app_browser, |
|
144 |
"edit" : app_editor, |
|
145 |
"fileservice" : app_fileservice, |
|
146 |
"console" : app_console, |
|
147 |
"consoleservice" : app_consoleservice, |
|
148 |
"tutorial" : app_tutorial, |
|
149 |
"tutorialservice" : app_tutorialservice, |
|
150 |
"serve" : app_server, |
|
151 |
"download" : app_download, |
|
152 |
"help" : app_help, |
|
458
by mattgiuca
Added "tos" as an app. This app simply displays the Terms of Service |
153 |
"forum" : app_forum, |
154 |
"tos" : app_tos, |
|
553
by mattgiuca
Added new app: Settings (UI for userservice). |
155 |
"settings" : app_settings, |
465
by mattgiuca
Added new app: userservice, which is an ajax service for user management |
156 |
"userservice" : app_userservice, |
562
by dcoles
Added new app: Diff (SVN diff application) |
157 |
"diff" : app_diff, |
621
by mattgiuca
Added 2 new apps: home and subjects. Both fairly incomplete, just a basic |
158 |
"subjects" : app_subjects, |
159 |
"home" : app_home, |
|
409
by mattgiuca
Moved www/conf and www/common to a new directory lib. This separates the "web" |
160 |
}
|
161 |
if enable_debuginfo: |
|
162 |
app_url["debuginfo"] = app_debuginfo |
|
163 |
||
164 |
# List of apps that go in the tabs at the top
|
|
165 |
# (The others are hidden unless they are linked to)
|
|
166 |
# Note: The values in this list are the URL names as seen in app_url.
|
|
167 |
||
443
by dcoles
Added Forum application along with unmodifed version of phpBB3 "Olympus" 3.0.0 |
168 |
apps_in_tabs = ["files", "edit", "console", "tutorial", "forum", "help"] |