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
|
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
8 |
# Note: icon is a string of a file basename. The icon files are found in
|
9 |
# app_icon_dir, defined below.
|
|
93
by mattgiuca
New directory hierarchy. |
10 |
class App: |
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
11 |
def __init__(self, dir, name, icon = None, requireauth = True, |
12 |
hashelp = False): |
|
93
by mattgiuca
New directory hierarchy. |
13 |
self.dir = dir |
14 |
self.name = name |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
15 |
self.icon = icon |
93
by mattgiuca
New directory hierarchy. |
16 |
self.requireauth = requireauth |
17 |
self.hashelp = hashelp |
|
18 |
def __repr__(self): |
|
19 |
return ("App(dir=" + repr(self.dir) + ", name=" + repr(self.name) + |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
20 |
", icon=" + repr(self.icon) + |
93
by mattgiuca
New directory hierarchy. |
21 |
", requireauth=" + repr(self.requireauth) + ", hashelp=" |
22 |
+ repr(self.hashelp) + ")") |
|
23 |
||
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
24 |
# Directory where app icons are stored, relative to the IVLE root.
|
25 |
app_icon_dir = "media/images/apps" |
|
199
by mattgiuca
Added small versions of all the app icons to images. These are used for |
26 |
# Small version of icons (16x16, for favicon)
|
27 |
app_icon_dir_small = "media/images/apps/small" |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
28 |
|
195
by mattgiuca
Configuration: Moved "default_app" setting from conf/conf.py to conf/apps.py. |
29 |
# Which application to load by default (if the user navigates to the top level
|
30 |
# of the site). This is the app's URL name.
|
|
31 |
# Note that if this app requires authentication, the user will first be
|
|
32 |
# presented with the login screen.
|
|
33 |
default_app = "files" |
|
34 |
||
93
by mattgiuca
New directory hierarchy. |
35 |
# Application definitions
|
36 |
||
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
37 |
app_browser = App(dir = "browser", |
38 |
name = "File Browser", |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
39 |
icon = "browser.png", |
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
40 |
requireauth = True, |
41 |
hashelp = True) |
|
42 |
||
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
43 |
app_editor = App(dir = "editor", |
44 |
name = "Text Editor", |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
45 |
icon = "editor.png", |
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
46 |
requireauth = True, |
47 |
hashelp = True) |
|
48 |
||
138
by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser). |
49 |
app_fileservice = App(dir = "fileservice", |
50 |
name = "File Service (AJAX server)", |
|
51 |
requireauth = True, |
|
52 |
hashelp = False) |
|
53 |
||
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
54 |
app_console = App(dir = "console", |
55 |
name = "Console", |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
56 |
icon = "console.png", |
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
57 |
requireauth = True, |
58 |
hashelp = True) |
|
59 |
||
60 |
app_tutorial = App(dir = "tutorial", |
|
61 |
name = "Tutorial", |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
62 |
icon = "tutorial.png", |
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
63 |
requireauth = True, |
64 |
hashelp = True) |
|
65 |
||
93
by mattgiuca
New directory hierarchy. |
66 |
app_server = App(dir = "server", |
67 |
name = "Server", |
|
68 |
requireauth = False, |
|
69 |
hashelp = False) |
|
70 |
||
71 |
app_download = App(dir = "download", |
|
72 |
name = "Download", |
|
73 |
requireauth = True, |
|
74 |
hashelp = False) |
|
75 |
||
76 |
app_help = App(dir = "help", |
|
77 |
name = "Help", |
|
196
by mattgiuca
Added application icons, displayed in the tabs at the top of the IVLE page. |
78 |
icon = "help.png", |
93
by mattgiuca
New directory hierarchy. |
79 |
requireauth = True, |
80 |
hashelp = False) |
|
81 |
||
82 |
app_debuginfo = App(dir = "debuginfo", |
|
83 |
name = "Debug Information", |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
84 |
requireauth = False, |
93
by mattgiuca
New directory hierarchy. |
85 |
hashelp = False) |
86 |
||
87 |
# Mapping URL names to apps
|
|
88 |
||
89 |
app_url = { |
|
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
90 |
"files" : app_browser, |
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
91 |
"edit" : app_editor, |
138
by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser). |
92 |
"fileservice" : app_fileservice, |
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
93 |
"console" : app_console, |
94 |
"tutorial" : app_tutorial, |
|
93
by mattgiuca
New directory hierarchy. |
95 |
"serve" : app_server, |
96 |
"download" : app_download, |
|
97 |
"help" : app_help, |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
98 |
#"debuginfo" : app_debuginfo,
|
93
by mattgiuca
New directory hierarchy. |
99 |
}
|
100 |
||
101 |
# List of apps that go in the tabs at the top
|
|
102 |
# (The others are hidden unless they are linked to)
|
|
103 |
# Note: The values in this list are the URL names as seen in app_url.
|
|
104 |
||
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
105 |
apps_in_tabs = ["files", "edit", "console", "tutorial", "help"] |