26
24
repr(self.desc), repr(self.icon), repr(self.requireauth),
27
25
repr(self.hashelp)))
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
27
# Which application to use for "public host" URLs.
41
29
public_app = "serve"
43
31
# 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
33
app_fileservice = App(dir = "fileservice",
55
34
name = "File Service (AJAX server)",
56
35
requireauth = True,
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
38
# Mapping URL names to apps
127
"files" : app_browser,
128
41
"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"]