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 |
||
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
21 |
app_browser = App(dir = "browser", |
22 |
name = "File Browser", |
|
23 |
requireauth = True, |
|
24 |
hashelp = True) |
|
25 |
||
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
26 |
app_editor = App(dir = "editor", |
27 |
name = "Text Editor", |
|
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 |
||
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
36 |
app_console = App(dir = "console", |
37 |
name = "Console", |
|
38 |
requireauth = True, |
|
39 |
hashelp = True) |
|
40 |
||
41 |
app_tutorial = App(dir = "tutorial", |
|
42 |
name = "Tutorial", |
|
43 |
requireauth = True, |
|
44 |
hashelp = True) |
|
45 |
||
93
by mattgiuca
New directory hierarchy. |
46 |
app_server = App(dir = "server", |
47 |
name = "Server", |
|
48 |
requireauth = False, |
|
49 |
hashelp = False) |
|
50 |
||
51 |
app_download = App(dir = "download", |
|
52 |
name = "Download", |
|
53 |
requireauth = True, |
|
54 |
hashelp = False) |
|
55 |
||
56 |
app_help = App(dir = "help", |
|
57 |
name = "Help", |
|
58 |
requireauth = True, |
|
59 |
hashelp = False) |
|
60 |
||
61 |
app_debuginfo = App(dir = "debuginfo", |
|
62 |
name = "Debug Information", |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
63 |
requireauth = False, |
93
by mattgiuca
New directory hierarchy. |
64 |
hashelp = False) |
65 |
||
66 |
# Mapping URL names to apps
|
|
67 |
||
68 |
app_url = { |
|
136
by mattgiuca
Added File Browser (browser) application. (Currently just stub). |
69 |
"files" : app_browser, |
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
70 |
"edit" : app_editor, |
138
by mattgiuca
Added new app: fileservice. (The Ajax service behind the file browser). |
71 |
"fileservice" : app_fileservice, |
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
72 |
"console" : app_console, |
73 |
"tutorial" : app_tutorial, |
|
93
by mattgiuca
New directory hierarchy. |
74 |
"serve" : app_server, |
75 |
"download" : app_download, |
|
76 |
"help" : app_help, |
|
124
by mattgiuca
dispatch/request: Added new fields: method and username. |
77 |
#"debuginfo" : app_debuginfo,
|
93
by mattgiuca
New directory hierarchy. |
78 |
}
|
79 |
||
80 |
# List of apps that go in the tabs at the top
|
|
81 |
# (The others are hidden unless they are linked to)
|
|
82 |
# Note: The values in this list are the URL names as seen in app_url.
|
|
83 |
||
193
by mattgiuca
Apps: Added stubs for the 3 new apps, Editor, Console and Tutorial. |
84 |
apps_in_tabs = ["files", "edit", "console", "tutorial", "help"] |