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
11
# desc is a full description for the front page. It isn't required
12
# unless this app is in apps_on_home_page.
13
# icon is a string of a file basename. The icon files are found in
14
# app_icon_dir, defined below.
16
def __init__(self, dir, name, desc=None, icon = None,
17
requireauth = True, hashelp = False):
22
self.requireauth = requireauth
23
self.hashelp = hashelp
25
return ("App(dir=%s, name=%s, desc=%s, icon=%s, requireauth=%s, "
26
"hashelp=%s)" % (repr(self.dir), repr(self.name),
27
repr(self.desc), repr(self.icon), repr(self.requireauth),
30
# Directory where app icons are stored, relative to the IVLE root.
31
app_icon_dir = "media/images/apps"
32
# Small version of icons (16x16, for favicon)
33
app_icon_dir_small = "media/images/apps/small"
35
# Which application to load by default (if the user navigates to the top level
36
# of the site). This is the app's URL name.
37
# Note that if this app requires authentication, the user will first be
38
# presented with the login screen.
40
# Which application to use for "public host" URLs.
44
# Application definitions
46
app_browser = App(dir = "browser",
48
desc = "Gives you access to all of your files and lets "
49
"you download, upload, edit and run them.",
54
app_fileservice = App(dir = "fileservice",
55
name = "File Service (AJAX server)",
59
app_console = App(dir = "console",
61
desc = "A Python console where you can try out code "
62
"without having to save and run it.",
67
app_consoleservice = App(dir = "consoleservice",
68
name = "Console Service",
72
app_tutorial = App(dir = "tutorial",
74
desc = "Online tutorials and exercises for lab work.",
75
icon = "tutorial.png",
79
app_tutorialservice = App(dir = "tutorialservice",
80
name = "Tutorial Service",
84
app_server = App(dir = "server",
89
app_download = App(dir = "download",
94
app_help = App(dir = "help",
96
desc = "IVLE help pages",
101
app_debuginfo = App(dir = "debuginfo",
102
name = "Debug Information",
106
app_forum = App(dir = "forum",
108
desc = "Discussion boards for material relating to "
109
"Informatics, IVLE and Python.",
114
app_tos = App(dir = "tos",
115
name = "Terms of Service",
119
app_settings = App(dir = "settings",
120
name = "Account Settings",
121
icon = "settings.png",
125
app_userservice = App(dir = "userservice",
126
name = "User Management Service",
130
app_diff = App(dir = "diff",
136
app_svnlog = App(dir = "svnlog",
137
name = "Subversion Log",
141
app_subjects = App(dir = "subjects",
143
desc = "Announcements and information about the subjects "
144
"you are enrolled in.",
145
icon = "subjects.png",
149
app_home = App(dir = "home",
151
desc = "IVLE home page",
156
# Mapping URL names to apps
159
"files" : app_browser,
160
"fileservice" : app_fileservice,
161
"console" : app_console,
162
"consoleservice" : app_consoleservice,
163
"tutorial" : app_tutorial,
164
"tutorialservice" : app_tutorialservice,
165
"serve" : app_server,
166
"download" : app_download,
170
"settings" : app_settings,
171
"userservice" : app_userservice,
173
"svnlog" : app_svnlog,
174
"subjects" : app_subjects,
178
app_url["debuginfo"] = app_debuginfo
180
# List of apps that go in the tabs at the top
181
# (The others are hidden unless they are linked to)
182
# Note: The values in this list are the URL names as seen in app_url.
184
apps_in_tabs = ["home", "subjects", "files", "tutorial", "console",
187
# List of apps that go in the list on the home page
188
apps_on_home_page = ["subjects", "files", "tutorial", "console", "forum"]