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
# icon is a string of a file basename. The icon files are found in
12
# app_icon_dir, defined below.
14
def __init__(self, dir, name, desc=None, icon = None,
15
useconsole = False, requireauth = True, hashelp = False):
20
self.useconsole = useconsole
21
self.requireauth = requireauth
22
self.hashelp = hashelp
24
return ("App(dir=%s, name=%s, desc=%s, icon=%s, requireauth=%s, "
25
"hashelp=%s)" % (repr(self.dir), repr(self.name),
26
repr(self.desc), repr(self.icon), repr(self.requireauth),
29
# Directory where app icons are stored, relative to the IVLE root.
30
app_icon_dir = "+media/ivle.webapp.core/images/apps"
31
# Small version of icons (16x16, for favicon)
32
app_icon_dir_small = "+media/ivle.webapp.core/images/apps/small"
34
# Which application to load by default (if the user navigates to the top level
35
# of the site). This is the app's URL name.
36
# Note that if this app requires authentication, the user will first be
37
# presented with the login screen.
39
# Which application to use for "public host" URLs.
43
# Application definitions
45
app_browser = App(dir = "browser",
47
desc = "Gives you access to all of your files and lets "
48
"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.",
64
useconsole = False, # We use a full console in this app
68
app_tutorial = App(dir = "tutorial",
70
desc = "Online tutorials and exercises for lab work.",
71
icon = "tutorial.png",
76
app_server = App(dir = "server",
81
app_download = App(dir = "download",
86
app_help = App(dir = "help",
88
desc = "IVLE help pages",
93
app_debuginfo = App(dir = "debuginfo",
94
name = "Debug Information",
98
app_forum = App(dir = "forum",
100
desc = "Discussion boards for material relating to "
101
"Informatics, IVLE and Python.",
106
app_tos = App(dir = "tos",
107
name = "Terms of Service",
111
app_userservice = App(dir = "userservice",
112
name = "User Management Service",
116
app_subjects = App(dir = "subjects",
118
desc = "Announcements and information about the subjects "
119
"you are enrolled in.",
120
icon = "subjects.png",
124
# Mapping URL names to apps
127
"files" : app_browser,
128
"fileservice" : app_fileservice,
129
"console" : app_console,
130
"tutorial" : app_tutorial,
131
"serve" : app_server,
132
"download" : app_download,
136
"userservice" : app_userservice,
137
"subjects" : app_subjects,
140
app_url["debuginfo"] = app_debuginfo
142
# List of apps that go in the tabs at the top
143
# (The others are hidden unless they are linked to)
144
# Note: The values in this list are the URL names as seen in app_url.
146
apps_in_tabs = ["files", "tutorial", "console",
147
"forum", "subjects", "help"]