1
# IVLE Configuration File
3
# Configuration of plugin applications for IVLE
4
# These should not need to be modified by admins unless new applications are
7
enable_debuginfo = False
10
# Note: icon is a string of a file basename. The icon files are found in
11
# app_icon_dir, defined below.
13
def __init__(self, dir, name, icon = None, requireauth = True,
18
self.requireauth = requireauth
19
self.hashelp = hashelp
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) + ")")
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"
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.
36
# Which application to use for "public host" URLs.
40
# Application definitions
42
app_browser = App(dir = "browser",
43
name = "File Browser",
48
app_editor = App(dir = "editor",
54
app_fileservice = App(dir = "fileservice",
55
name = "File Service (AJAX server)",
59
app_console = App(dir = "console",
65
app_consoleservice = App(dir = "consoleservice",
66
name = "Console Service",
70
app_tutorial = App(dir = "tutorial",
72
icon = "tutorial.png",
76
app_tutorialservice = App(dir = "tutorialservice",
77
name = "Tutorial Service",
81
app_server = App(dir = "server",
86
app_download = App(dir = "download",
91
app_help = App(dir = "help",
97
app_debuginfo = App(dir = "debuginfo",
98
name = "Debug Information",
102
app_forum = App(dir = "forum",
108
app_tos = App(dir = "tos",
109
name = "Terms of Service",
113
app_userservice = App(dir = "userservice",
114
name = "User Management Service",
118
# Mapping URL names to apps
121
"files" : app_browser,
123
"fileservice" : app_fileservice,
124
"console" : app_console,
125
"consoleservice" : app_consoleservice,
126
"tutorial" : app_tutorial,
127
"tutorialservice" : app_tutorialservice,
128
"serve" : app_server,
129
"download" : app_download,
133
"userservice" : app_userservice,
136
app_url["debuginfo"] = app_debuginfo
138
# List of apps that go in the tabs at the top
139
# (The others are hidden unless they are linked to)
140
# Note: The values in this list are the URL names as seen in app_url.
142
apps_in_tabs = ["files", "edit", "console", "tutorial", "forum", "help"]